private void ShowCenteralKingdomInfo(object sender, EventArgs e) { if (sender is GameControls.MapSigner mySigner) { this.IsShowingSandBox = true; KingdomInfoSandBox mySand = new KingdomInfoSandBox(this); this.ShowingSandBox = mySand; this.ShowingSandBox.TopLevel = true; //MessageBox.Show(test.KingdomInfo.KingdomName); this.ShowingSandBox.Show(); this.ShowingSandBox.Focus(); mySigner.HasMouseClickedOnce = false; } }
private void KingdomMapSignerInfoLabel_Click(object sender, EventArgs e) { this.IsShowingSandBox = true; KingdomInfoSandBox mySand = new KingdomInfoSandBox(this, ThereIsServer.GameObjects.MyProfile.KingdomInfo); this.ShowingSandBox = mySand; this.ShowingSandBox.TopMost = true; //MessageBox.Show(test.KingdomInfo.KingdomName); this.ShowingSandBox.Show(); this.ShowingSandBox.Focus(); if (sender is GameControls.LabelControl labelControl) { labelControl.HasMouseClickedOnce = false; mySand.KingdomBackground.Image = ((GameControls.PictureBoxControl)labelControl.Parent.Parent).Image; } }