示例#1
0
 //----------------------------------------------
 #region Overrided Methods Region
 protected override void OnGotFocus(EventArgs e)
 {
     if (!MyHallSandBox.IsHallUp)
     {
         MyHallSandBox.Focus();
     }
     base.OnGotFocus(e);
 }
示例#2
0
 private void ElementSelectionSandBox_FormClosed(object sender, FormClosedEventArgs e)
 {
     MyHallSandBox.Close();
     if (ThereIsServer.GameObjects.MyProfile.ThePlayerElement != PlayerElement.NotSet)
     {
         if (!ThereIsConstants.Forming.GameClient.Enabled)
         {
             ThereIsConstants.Forming.GameClient.Enabled = true;
         }
         ThereIsConstants.Forming.GameClient.Focus();
     }
     else
     {
         ThereIsConstants.AppSettings.GameClient.Close();
     }
 }
示例#3
0
 private void FirstStoryLineSandBox_FormClosed(object sender, FormClosedEventArgs e)
 {
     MyHallSandBox.Close();
     if (MessageLabel1.CurrentStatus == 0)
     {
         if (!ThereIsConstants.Forming.GameClient.Enabled)
         {
             ThereIsConstants.Forming.GameClient.Enabled = true;
             ThereIsConstants.Forming.GameClient.ShowKojiEmpire();
         }
         ThereIsConstants.Forming.GameClient.Focus();
     }
     else
     {
         ThereIsConstants.AppSettings.GameClient.Close();
     }
 }
示例#4
0
 public SandBoxBase GetTheHighestSandBox(bool WantMeToFocusThem, bool SetTheEnabledToFalse = true)
 {
     if (IsShowingAnotherSandBox && ShowingAnotherSandBox != null)
     {
         if (WantMeToFocusThem)
         {
             if (MyHallSandBox != null)
             {
                 MyHallSandBox.Focus();
             }
             Focus();
             if (ShowingAnotherSandBox != null)
             {
                 ShowingAnotherSandBox.Focus();
             }
         }
         if (SetTheEnabledToFalse && !(ShowingAnotherSandBox is HallSandBox) && Enabled)
         {
             Enabled = false;
         }
         return(ShowingAnotherSandBox.GetTheHighestSandBox(WantMeToFocusThem));
     }
     else
     {
         if (WantMeToFocusThem)
         {
             if (MyHallSandBox != null)
             {
                 MyHallSandBox.Focus();
             }
             Focus();
             if (SetTheEnabledToFalse && Enabled)
             {
                 //Enabled = false;
             }
         }
         return(this);
     }
 }
示例#5
0
 private void DesignElements()
 {
     MyHallSandBox.Show();
     this.Hide();
 }
示例#6
0
 private void DesignStory1()
 {
     MyHallSandBox.Show();
     this.Hide();
 }