public MainMenuForm(Game Game, BaseBeloteScene ParentScene, BeloteFormAction CloseAction, BaseBeloteForm ParentForm) : base(Game, ParentScene, CloseAction, ParentForm) { DaylyBonusForm = null; CreationTableForm = null; TablesSelectOptionsForm = null; }
public void OnMenuButtonClick(BaseBeloteControl Sender, string SpriteName) { if (MenuButtons [1].Name == "TrainingButton") { } if (MenuButtons [1].Name == "NewTableButton") { CreationTableForm = new CreationTableForm (this.Game, this.ParentScene, OnCreationTableFormClose, this); CreationTableForm.Show (Width / 2, Height / 2, Width / 4, Height / 4); ParentScene.ChangeActiveForm (CreationTableForm); } if (MenuButtons [1].Name == "TablesListButton") { TablesSelectOptionsForm = new TablesSelectOptionsForm (this.Game, this.ParentScene, OnSelectionTablesOptionsFormClose, this); TablesSelectOptionsForm.Show (Width - (Width / 6), Height - (Height / 4), Width / 12, Height / 8); ParentScene.ChangeActiveForm (TablesSelectOptionsForm); } }