Example #1
0
 private void createProfile()
 {
     if (Application.OpenForms["FileNameSave"] is FileNameSave)
     return;
       if (this.profileListBox.SelectedIndex != -1)
     this.profileListBox.SetSelected(this.profileListBox.SelectedIndex, false);
       FileNameSave fileNameSave = new FileNameSave("", "profile", "");
       fileNameSave.FormClosed += new FormClosedEventHandler(this.fileNameSave_FormClosed);
       ((Control) fileNameSave).Show();
 }
Example #2
0
        private void profileNameL_Click(object sender, EventArgs e)
        {
            if (Application.OpenForms["FileNameSave"] is FileNameSave)
            {
                return;
            }
            FileNameSave fileNameSave = new FileNameSave(this.currentProfile, "profile", "");

            fileNameSave.FormClosed += new FormClosedEventHandler(this.fileNameSave_FormClosed);
            fileNameSave.Show((IWin32Window)this);
        }
Example #3
0
        private void createProfile()
        {
            if (Application.OpenForms["FileNameSave"] is FileNameSave)
            {
                return;
            }
            if (this.profileListBox.SelectedIndex != -1)
            {
                this.profileListBox.SetSelected(this.profileListBox.SelectedIndex, false);
            }
            FileNameSave fileNameSave = new FileNameSave("", "profile", "");

            fileNameSave.FormClosed += new FormClosedEventHandler(this.fileNameSave_FormClosed);
            ((Control)fileNameSave).Show();
        }
Example #4
0
 private void renameButton_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["FileNameSave"] is FileNameSave)
     {
         return;
     }
     try
     {
         FileNameSave fileNameSave = new FileNameSave((string)this.pathListBox.SelectedItem, "path", this.pathType);
         fileNameSave.FormClosed += new FormClosedEventHandler(this.fileNameSave_FormClosed);
         fileNameSave.Owner       = (Form)this;
         ((Control)fileNameSave).Show();
     }
     catch (IOException ex)
     {
         Thread.Sleep(TimeSpan.FromSeconds(1.0));
     }
 }
Example #5
0
 private void renameButton_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["FileNameSave"] is FileNameSave)
     return;
       try
       {
     FileNameSave fileNameSave = new FileNameSave((string) this.pathListBox.SelectedItem, "path", this.pathType);
     fileNameSave.FormClosed += new FormClosedEventHandler(this.fileNameSave_FormClosed);
     fileNameSave.Owner = (Form) this;
     ((Control) fileNameSave).Show();
       }
       catch (IOException ex)
       {
     Thread.Sleep(TimeSpan.FromSeconds(1.0));
       }
 }
Example #6
0
 private void profileNameL_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["FileNameSave"] is FileNameSave)
     return;
       FileNameSave fileNameSave = new FileNameSave(this.currentProfile, "profile", "");
       fileNameSave.FormClosed += new FormClosedEventHandler(this.fileNameSave_FormClosed);
       fileNameSave.Show((IWin32Window) this);
 }