示例#1
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;
 }
示例#2
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;
 }