Beispiel #1
0
 public void OnPauseOrResume()
 {
     if (PauseOrResumeButtonText == "Szüneteltetés")
     {
         m_model.PauseOrResume();
         m_model.m_isPaused      = true;
         PauseOrResumeButtonText = "Folytatás";
         OnPropertyChanged("PauseOrResumeButtonText");
         SaveIsEnable = "True";
         LoadIsEnable = "True";
         OnPropertyChanged("SaveEnable");
         OnPropertyChanged("LoadEnable");
         m_isPaused = true;
     }
     else
     {
         PauseOrResumeButtonText = "Szüneteltetés";
         SaveIsEnable            = "False";
         LoadIsEnable            = "False";
         OnPropertyChanged("SaveEnable");
         OnPropertyChanged("LoadEnable");
         m_model.PauseOrResume();
         m_isPaused = false;
     }
 }
Beispiel #2
0
        private void PauseOrResumeStrip_Click(Object sender, EventArgs e)
        {
            if (!m_model.m_isPaused)
            {
                _pauseOrResumeStrip.Text = "Folytatás";
                _saveStrip.Enabled       = true;
                _loadStrip.Enabled       = true;
            }
            else
            {
                _pauseOrResumeStrip.Text = "Szüneteltetés";
                _saveStrip.Enabled       = false;
                _loadStrip.Enabled       = false;
            }

            m_model.PauseOrResume();
        }
Beispiel #3
0
 private void On_GameOver(object sender, IsGameOver e)
 {
     m_model.PauseOrResume();
     MessageBox.Show("Elfogyott a benzined! :(" + Environment.NewLine +
                     "Az időd: " + m_model.m_time + "másodperc");
 }