//Contructor public LuongGiaBanCo(BanCo cls) { height = cls.Row; width = cls.Column; GiaTri = new int[height, width]; ResetBoard(); }
public MainWindow() { this.InitializeComponent(); banco = new BanCo(this, grdBanCo); banco.DrawGomokuBoard(); grdBanCo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(banco.grdBanCo_MouseDown); banco.WinEvent += new BanCo.WinEventHander(banco_WinEvent); banco.LoseEvent += new BanCo.LoseEventHander(banco_LoseEvent); }