Ejemplo n.º 1
0
 //Contructors
 public BanCo(MainWindow frm, Grid grd)
 {
     Option = new Option();
     OWin   = new _5O_ChienThang();
     row    = column = 12;
     board  = new Player[row, column];
     ResetBoard();
     eBoard     = new LuongGiaBanCo(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;
 }
Ejemplo n.º 2
0
 //Contructors
 public BanCo(MainWindow frm, Grid grd)
 {
     Option = new Option();
     OWin = new _5O_ChienThang();
     row = column = 12;
     board = new Player[row, column];
     ResetBoard();
     eBoard = new LuongGiaBanCo(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;
 }