示例#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;
     }
 }
示例#2
0
文件: GameForm.cs 项目: JnKhB/.Net
        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();
        }
示例#3
0
文件: App.xaml.cs 项目: JnKhB/.Net
 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");
 }