private void ShowSubscribeForm()
 {
     if (subscribeForm != null)
     {
         subscribeForm.Activate();
     }
     else
     {
         subscribeForm = new SubscribeForm(controller);
         subscribeForm.Show();
         subscribeForm.Activate();
         subscribeForm.FormClosed += subscribeForm_FormClosed;
     }
 }
Пример #2
0
 private void ShowSubscribeSettingForm()
 {
     if (subScribeForm != null)
     {
         subScribeForm.Activate();
         subScribeForm.Update();
         if (subScribeForm.WindowState == FormWindowState.Minimized)
         {
             subScribeForm.WindowState = FormWindowState.Normal;
         }
     }
     else
     {
         subScribeForm = new SubscribeForm(controller);
         subScribeForm.Show();
         subScribeForm.Activate();
         subScribeForm.BringToFront();
         subScribeForm.FormClosed += subScribeForm_FormClosed;
     }
 }