Ejemplo n.º 1
0
 public clsBanCo(Window Frm, Canvas cvBC, TextBox tb1, TextBox tb2)
 {
     _countRow  = _countColumn = 12;
     frmParent  = Frm;
     cvBanCo    = cvBC;
     tbOCo      = tb1;
     tbNamePlay = tb2;
     _menu      = new clsMenu();
     OWin       = new cls5OWin();
     rec        = new Rectangle();
     end        = Player.None;
     board      = new Player[_countRow, _countColumn];
     ResetBoard();
     eBoard = new clsLuongGiaBanCo(this);
     CreateRec();
     cvBanCo.Children.Add(rec);
     cvBanCo.MouseMove += new System.Windows.Input.MouseEventHandler(BanCo_MouseMove);
     cvBanCo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(BanCo_MouseDown);
 }
Ejemplo n.º 2
0
 public clsBanCo(Window Frm, Canvas cvBC, TextBox tb1, TextBox tb2)
 {
     _countRow = _countColumn = 12;
     frmParent = Frm;
     cvBanCo = cvBC;
     tbOCo = tb1;
     tbNamePlay = tb2;
     _menu = new clsMenu();
     OWin = new cls5OWin();
     rec = new Rectangle(); 
     end = Player.None;
     board = new Player[_countRow, _countColumn];
     ResetBoard();
     eBoard = new clsLuongGiaBanCo(this);
     CreateRec();
     cvBanCo.Children.Add(rec);
     cvBanCo.MouseMove += new System.Windows.Input.MouseEventHandler(BanCo_MouseMove);
     cvBanCo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(BanCo_MouseDown);
 }