Exemplo n.º 1
0
 public GraphicView(BSContoller bs)
 {
     InitializeComponent();
     bsController = bs;
     //Format the oringinal board
     bsController.setDatagridView(dgvPlayer);
     bsController.setDatagridView(dgvAI);
     btnSaveGame.Enabled = false;
 }
Exemplo n.º 2
0
 public void newGame(int viewDefinder)
 {
     bsController.setDatagridView(dgvPlayer);
     bsController.setDatagridView(dgvAI);
     if (viewDefinder == 1)
     {
         bsController.newGameBoardSet(1);
     }
     displayReset();
     btnNewGame.Enabled = false;
 }
Exemplo n.º 3
0
 public FilterView(BSContoller bs)
 {
     InitializeComponent();
     bsController = bs;
     bsController.setDatagridView(dgv);
     dgv[0, 0].Selected       = true;
     dgv.CurrentCell.Selected = false;
     cmbBoardSelection.Items.Insert(0, "Player Game Board");
     cmbBoardSelection.Items.Insert(1, "Computer Game Board");
     cmbBoardSelection.SelectedIndex = 0;
 }