Exemplo n.º 1
0
 void LoadGameByGameSaved(int ma, List <Cell> lstCell, int tg)
 {
     getData           = new GetDAL();
     c                 = getData.GetLevelByMa(ma);
     lblSoMinFlag.Text = c.soMin.ToString();
     board             = new Board(pnlLayOut, pnlPlay, (int)c.soCot, (int)c.soDong, (int)c.soMin, pnlPlayState, (int)chucNang);
     board.SetupBoardCoSan(lstCell, tg);
 }
Exemplo n.º 2
0
        void LoadGame(int ma)
        {
            getData           = new GetDAL();
            c                 = getData.GetLevelByMa(ma);
            lblSoMinFlag.Text = c.soMin.ToString();
            board             = new Board(pnlLayOut, pnlPlay, (int)c.soCot, (int)c.soDong, (int)c.soMin, pnlPlayState, (int)chucNang);

            board.SetupBoard(false);
            board.PlaceMines();
        }
Exemplo n.º 3
0
        void LoadGameBySetup()
        {
            btnStart.Enabled = true;
            getData          = new GetDAL();
            CapDo c = getData.GetLevelByMa((int)cboLevel.SelectedValue);

            lblSoMinFlag.Text = c.soMin.ToString();
            board             = new Board(pnlLayOut, pnlPlay, (int)c.soCot, (int)c.soDong, (int)c.soMin, pnlPlayState, (int)chucNang);
            board.pnlPlay.Controls.Clear();
            board.SetupBoard(true);
        }
 partial void DeleteCapDo(CapDo instance);
 partial void UpdateCapDo(CapDo instance);
 partial void InsertCapDo(CapDo instance);