コード例 #1
0
 void ShowPopForm(object sender, EventArgs e)
 {
     if (popForm != null)
     {
         popForm.Activate();
     }
     else
     {
         if (this.controller.IsLogin())
         {
             popForm = clientForm = new ClientForm(this.controller);
         }
         else
         {
             popForm = loginForm = new LoginForm(this.controller);
         }
         popForm.Show();
         popForm.Activate();
         popForm.FormClosed += PopForm_FormClosed;
     }
 }
コード例 #2
0
 void PopForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     loginForm = null;
     clientForm = null;
     popForm = null;
 }
コード例 #3
0
 void ShowPopForm(object sender, EventArgs e)
 {
     if (popForm != null)
         popForm.Activate();
     else
     {
         if (this.controller.IsLogin())
         {
             popForm = clientForm = new ClientForm(this.controller);
         }
         else
         {
             popForm = loginForm = new LoginForm(this.controller);
         }
         popForm.Show();
         popForm.Activate();
         popForm.FormClosed += PopForm_FormClosed;
     }
 }
コード例 #4
0
 void PopForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     loginForm  = null;
     clientForm = null;
     popForm    = null;
 }