コード例 #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
        // ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
        public static string GetHeaderString1(VisColumn column, VisRow row)
        {
            string text = headerLabels [(((( int )column) * 20) + ( int )row)];

            return(text);
        }