示例#1
0
        private void openModelesslyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PreferencesDialogue prefdlg = new PreferencesDialogue();

            prefdlg.Apply   += new EventHandler(infoGrab_Apply);
            prefdlg.closing += new EventHandler(revert_Info);
            prefdlg.Show(this);
        }
示例#2
0
 private void openModelesslyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (modelessDlg == null || modelessDlg.IsDisposed)
     {
         modelessDlg = createPrefDialogue(); //Change this when you have the Preferences Dialog working, this is just a test to see if it works.
         this.Update();                      //Check if this is the correct code for updating the properties of the Form.
         modelessDlg.Show(this);
     }
     else
     {
         modelessDlg.Activate();
     }
 }