public void Initialize()
        {
            _dataAccess = new MapLoad();
            _model      = new MaciLaciModel();

            _dataAccess.LoadMap("..\\..\\..\\..\\med.txt", _model.Table);
        }
Ejemplo n.º 2
0
        private void MaciLaciForm_Load(object sender, EventArgs e)
        {
            _dataAccess = new MapLoad();
            _model      = new MaciLaciModel();

            _dataAccess.LoadMap(_gameModePath, _model.Table);

            GenerateTable();
            _timer.Start();
            _timerLabel.Text = "0";
            this.Width       = _width;
            this.Height      = _height;

            _model.GameWon  += new EventHandler(OnGameWon);
            _model.GameLost += new EventHandler(OnGameLost);
        }
Ejemplo n.º 3
0
        private void újJátékToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClearTable();

            _model.NewGame();

            _dataAccess = new MapLoad();
            _model      = new MaciLaciModel();

            _dataAccess.LoadMap(_gameModePath, _model.Table);

            GenerateTable();
            _timer.Start();
            _timerLabel.Text = "0";
            this.Width       = _width;
            this.Height      = _height;

            _model.GameWon  += new EventHandler(OnGameWon);
            _model.GameLost += new EventHandler(OnGameLost);

            szünetToolStripMenuItem.Enabled = true;
            szünetToolStripMenuItem.Visible = true;
        }