コード例 #1
0
        //Contructors
        public BanCo(MainWindow frm, Grid grd)
        {
            Option     = new TuyChon();
            OWin       = new cls5OWin();
            row        = column = 12;
            currPlayer = Player.None;
            end        = Player.None;
            frmParent  = frm;
            grdBanCo   = grd;
            board      = new Player[row, column];
            ResetBoard();
            eBoard = new LuongGia(this);


            grdBanCo.MouseDown        += new System.Windows.Input.MouseButtonEventHandler(grdBanCo_MouseDown);
            worker.DoWork             += wait;
            worker.RunWorkerCompleted += maydanh;
        }
コード例 #2
0
ファイル: BanCo.cs プロジェクト: TND195/Gomoku
        //Contructors
        public BanCo(MainWindow frm, Grid grd)
        {
            Option = new TuyChon();
            OWin = new cls5OWin();
            row = column = 12;
            currPlayer = Player.None;
            end = Player.None;
            frmParent = frm;
            grdBanCo = grd;
            board = new Player[row, column];
            ResetBoard();
            eBoard = new LuongGia(this);

          
            grdBanCo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(grdBanCo_MouseDown);
            worker.DoWork += wait;
            worker.RunWorkerCompleted +=maydanh;
        }