コード例 #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;
        }
コード例 #3
0
ファイル: BanCo.cs プロジェクト: hoacumen/tenkhotim
 //Contructors
 public BanCo(MainWindow frm, Grid grd)
 {
     Option = new Chon();
     OWin = new _5OWin();
     row = column = 12;
     board = new Player[row, column];
     ResetBoard();
     eBoard = new LuongGia(this);
     currPlayer = Player.None;
     end = Player.None;
     frmParent = frm;
     grdBanCo = grd;           
     ddau = new DanhDau();
     Createddau();
     grdBanCo.Children.Add(ddau);
     grdBanCo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(grdBanCo_MouseDown);
     worker.DoWork += wait;
     worker.RunWorkerCompleted += danh;
 }
コード例 #4
0
 //Contructors
 public BanCo(MainWindow frm, Grid grd)
 {
     Option = new Chon();
     OWin   = new _5OWin();
     row    = column = 12;
     board  = new Player[row, column];
     ResetBoard();
     eBoard     = new LuongGia(this);
     currPlayer = Player.None;
     end        = Player.None;
     frmParent  = frm;
     grdBanCo   = grd;
     ddau       = new DanhDau();
     Createddau();
     grdBanCo.Children.Add(ddau);
     grdBanCo.MouseDown        += new System.Windows.Input.MouseButtonEventHandler(grdBanCo_MouseDown);
     worker.DoWork             += wait;
     worker.RunWorkerCompleted += danh;
 }