コード例 #1
0
ファイル: VimModel.cs プロジェクト: stubhub9/YahtzeeWPF2
        /// <summary>
        ///  Pass the row clicked to the game model.
        /// </summary>
        public static void RowClicked(string buttonName)
        {
            // Convert button name to Row enum.
            VisRow _visRow = ( VisRow )Int32.Parse(buttonName.Remove(0, 8));
            Row    _row    = ( Row )Enum.Parse(typeof(Row), _visRow.ToString());

            // Process the clicked row.
            GameModel1.RowClicked(_row);
        }
コード例 #2
0
ファイル: VimModel.cs プロジェクト: stubhub9/YahtzeeWPF2
 // New game OnInit or clicked.
 public static void NewGame()
 {
     GameModel1.NewGame();
     DiceBoxVM.UpdateDiceVisMod();
 }
コード例 #3
0
ファイル: VimModel.cs プロジェクト: stubhub9/YahtzeeWPF2
 public static void CommitWasClicked()
 {
     GameModel1.CommitWasClicked();
     DiceBoxVM.UpdateDiceVisMod();
 }