Example #1
0
 public Form1(DirectoryInfo sourceDir)
 {
     InitializeComponent();
     progressForm = new ProgressForm();
     progressForm.Show();
     this.textBox1.Text = sourceDir.FullName.ToString();
     if (validateSourcePath())
     {
         this.button2.Enabled = false;
         this.button1.Enabled = true;
     }
     else
     {
         this.button2.Enabled = false;
         this.button1.Enabled = false;
     }
 }
Example #2
0
 public Form1()
 {
     InitializeComponent();
     progressForm = new ProgressForm();
     progressForm.Show();
 }