Exemple #1
0
        private void buttonSettings_Click(object sender, EventArgs e)
        {
            dlgSettings dlgsettings = new dlgSettings();

            dlgsettings.Owner = this;
            dlgsettings.Show();
        }
Exemple #2
0
 private void buttonSettings_Click(object sender, EventArgs e)
 {
     if (dlgsettings == null)
     {
         dlgsettings             = new dlgSettings();
         dlgsettings.Owner       = this;
         dlgsettings.FormClosed += new FormClosedEventHandler(dlg_FormClosed);
         dlgsettings.Show();
     }
     else
     {
         dlgsettings.Activate();
     }
 }