//---------------------------------------------- #region Overrided Methods Region protected override void OnGotFocus(EventArgs e) { if (!MyHallSandBox.IsHallUp) { MyHallSandBox.Focus(); } base.OnGotFocus(e); }
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(); } }
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(); } }
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); } }
private void DesignElements() { MyHallSandBox.Show(); this.Hide(); }
private void DesignStory1() { MyHallSandBox.Show(); this.Hide(); }