Inheritance: System.Windows.Forms.Form
Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     Wait wait = new Wait();
     wait.Show();
     wait.Focus();
     wait.BringToFront();
     int size = this.checkedListBox1.Items.Count;
     LocalRepository repo = repoDao.RootRepo();
     Program.Controller.KillSynchronizers();
     for (int i = 0; i < size; i++) {
         if (!this.checkedListBox1.GetItemChecked(i))
         {
             repoIgnore.Create(repo, this.checkedListBox1.Items[i].ToString());
         }
         else {
             repoIgnore.Remove(repo, this.checkedListBox1.Items[i].ToString());
         }
     }
     Program.Controller.InitializeSynchronizers(true);
     wait.Hide();
     this.Focus();
     this.BringToFront();
 }
Example #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if ((new Invoker(folderBrowserDialog1).Invoke()) == DialogResult.OK)
     {
         string pathTo = Path.Combine(folderBrowserDialog1.SelectedPath, GlobalSettings.HomeFolderName) + Path.DirectorySeparatorChar;
         if (MessageBox.Show("Are you sure of this? All your files will be moved", "Confirm", MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             try
             {
                 Wait wait = new Wait();
                 wait.Show();
                 wait.Focus();
                 wait.BringToFront();
                 Program.Controller.MoveSQFolder(pathTo);
                 wait.Hide();
                 this.Focus();
                 this.BringToFront();
             }
             catch (Exception ex){
                 Logger.LogInfo("ERROR", ex);
                 Program.Controller.Alert("Cannot move StoraQloud");
             }
         }
     }
 }