protected void LimitedOkClicked(object sender, EventArgs e) { var dlg = backstage.Child as PickCardsDialog; if (dlg != null) Program.GameEngine.LoadDeck(dlg.LimitedDeck, true); HideBackstage(); }