Beispiel #1
0
 //----------------------------------------
 /// <summary>
 /// Coming Up when the program is reRunning :)
 /// </summary>
 public void ComeOnUp()
 {
     if (ThereIsConstants.Forming.GameClient != null)
     {
         ThereIsConstants.Forming.GameClient.WindowState = FormWindowState.Normal;
         if (ThereIsConstants.Forming.GameClient.IsShowingSandBox)
         {
             ThereIsConstants.Forming.GameClient.Show();
             ThereIsConstants.Forming.GameClient.Focus();
             ThereIsConstants.Forming.GameClient.ShowingSandBox.GetTheHighestSandBox(true);
         }
         else
         {
             ThereIsConstants.Forming.GameClient.Focus();
         }
     }
     else
     {
         WindowState = FormWindowState.Normal;
         if (ThereIsConstants.Forming.TheMainForm == null)
         {
             ThereIsConstants.Forming.TheMainForm = this;
         }
         if (IsShowingSandBox)
         {
             ShowingSandBox.GetTheHighestSandBox(true);
             Enabled = false;
         }
         else
         {
             Show();
             Focus();
         }
     }
 }
Beispiel #2
0
 private void MainForm_GotFocus(object sender, EventArgs e)
 {
     if (Focused)
     {
         if (IsShowingSandBox)
         {
             ShowingSandBox.GetTheHighestSandBox(true);
         }
     }
 }
Beispiel #3
0
 private void GameClient_GotFocus(object sender, EventArgs e)
 {
     if (Focused)
     {
         if (IsShowingSandBox)
         {
             if (!ShowingSandBox.Focused)
             {
                 ShowingSandBox.Focus();
             }
         }
     }
 }