Manuel Kamper
814a6e404a
main window on startup at center of screen #14 implemented remembering window state #15 implemented adjustable image amount loaded from API #16 fixed message when done #10 handled API connection errors #17 fixed empty replace path #18 added some comments
27 lines
958 B
C#
27 lines
958 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Mk0.Software.Bildduplikate
|
|
{
|
|
public partial class API : Form
|
|
{
|
|
public API()
|
|
{
|
|
InitializeComponent();
|
|
textBoxApiUrl.Text = Properties.Settings.Default.ApiUrl;
|
|
textBoxPath1.Text = Properties.Settings.Default.ReplacePath;
|
|
textBoxPath2.Text = Properties.Settings.Default.ReplaceWith;
|
|
numericUpDown1.Value = Properties.Settings.Default.imagesFromAPI;
|
|
}
|
|
|
|
private void ButtonSave_Click(object sender, EventArgs e)
|
|
{
|
|
Properties.Settings.Default.ApiUrl = textBoxApiUrl.Text.Trim();
|
|
Properties.Settings.Default.ReplacePath = textBoxPath1.Text.Trim();
|
|
Properties.Settings.Default.ReplaceWith = textBoxPath2.Text.Trim();
|
|
Properties.Settings.Default.imagesFromAPI = (int)numericUpDown1.Value;
|
|
Properties.Settings.Default.Save();
|
|
}
|
|
}
|
|
}
|