コード例 #1
0
        public MainForm()
        {
            InitializeComponent();

            game = TicTac.Create((int)numericUpDown1.Value, (int)numericUpDown2.Value, (int)numericUpDown3.Value);

            game.Moved  += MovedEvent;
            game.Winner += game_Winner;

            viewGame = new ViewTic();
            viewGame.Create(game, tLP, button_Click);
        }
コード例 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Refrech(sender, e);

            viewGame.Clear(tLP);

            try
            {
                game = TicTac.Create((int)numericUpDown1.Value, (int)numericUpDown2.Value, (int)numericUpDown3.Value);

                game.Moved  += MovedEvent;
                game.Winner += game_Winner;
                viewGame.Create(game, tLP, button_Click);
            }
            catch { }
        }