//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; }
//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; }