public Form1() { UserDefault.Init(); InitializeComponent(); EventDispatcher.RegisterEvent(this, 1001, this.CompareFileCallback); InitDirs(); }
private void button3_Click(object sender, EventArgs e) { var dialog = new FolderBrowserDialog(); if (dialog.ShowDialog() == DialogResult.OK) { this.textBox3.Text = dialog.SelectedPath; UserDefault.SetValue("destpath", this.textBox3.Text); } }
void InitDirs() { this.textBox1.Text = UserDefault.GetValue("oldpath", "").ToString(); this.textBox2.Text = UserDefault.GetValue("newpath", "").ToString(); this.textBox3.Text = UserDefault.GetValue("destpath", "").ToString(); }