Exemple #1
0
        private void OnGameResetMenuItemClick(object sender, EventArgs e)
        {
            var options = new ResetOptions
            {
                DebugText = this.debugTextBox
            };
            var result = options.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                this.board.Reset(null, options.PlayerX, options.PlayerO);
                this.debugTextBox.Text = string.Empty;
                this.UpdateGameStatus();
            }
        }
Exemple #2
0
		private void OnGameResetMenuItemClick(object sender, System.EventArgs e)
		{
			ResetOptions options = new ResetOptions();
			options.DebugText = this.debugTextBox;
			DialogResult result = options.ShowDialog(this);

			if (result == DialogResult.OK)
			{
				this.board.Reset(null, options.PlayerX, options.PlayerO);
				this.debugTextBox.Text = string.Empty;
				this.UpdateGameStatus();
			}
		}