Beispiel #1
0
        private void TextChanged(object sender, TextChangedEventArgs e)
        {
            TextBox cell = (TextBox)sender;
            int     r    = Grid.GetRow(cell);
            int     c    = Grid.GetColumn(cell);

            try
            {
                currentBoard[r, c] = Int32.Parse(cell.Text);
                this.DisplayBanner(game.CheckProgress(currentBoard));
            }
            catch (System.FormatException ex) { }
        }