Exemple #1
0
 private void optionsButton_Click(object sender, EventArgs e)
 {
     if (_optionsForm == null)
     {
         _optionsForm = new OptionsForm()
         {
             MusicBookSearch = _musicBookSearch,
             Font            = this.Font
         };
         _optionsForm.FormClosed += OptionsForm_FormClosed;
         _optionsForm.Show();
     }
     else
     {
         if (_optionsForm.WindowState == FormWindowState.Minimized)
         {
             _optionsForm.WindowState = FormWindowState.Normal;
         }
         _optionsForm.Focus();
     }
 }
Exemple #2
0
 private void OptionsForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     _optionsForm = null;
 }