Пример #1
0
 public Form1()
 {
     UserDefault.Init();
     InitializeComponent();
     EventDispatcher.RegisterEvent(this, 1001, this.CompareFileCallback);
     InitDirs();
 }
Пример #2
0
        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);
            }
        }
Пример #3
0
 void InitDirs()
 {
     this.textBox1.Text = UserDefault.GetValue("oldpath", "").ToString();
     this.textBox2.Text = UserDefault.GetValue("newpath", "").ToString();
     this.textBox3.Text = UserDefault.GetValue("destpath", "").ToString();
 }