Ejemplo n.º 1
0
 //----------------------------------------------
 #region Overrided Methods Region
 protected override void OnGotFocus(EventArgs e)
 {
     if (!MyHallSandBox.IsHallUp)
     {
         MyHallSandBox.Focus();
     }
     base.OnGotFocus(e);
 }
Ejemplo n.º 2
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);
     }
 }