示例#1
0
 public void Resume()
 {
     Assert.AreEqual(model.Paused, false);
     model.Pause();
     Assert.AreEqual(model.Paused, true);
     model.Resume();
     Assert.AreEqual(model.Paused, false);
 }
示例#2
0
        private void PauseResume()
        {
            if (_model.Paused)
            {
                _model.Resume();
            }
            else
            {
                _model.Pause();
            }

            OnPropertyChanged("PauseResumeLabel");
        }
示例#3
0
 private void AsteroidsForm_PauseResume(object sender, EventArgs e)
 {
     if (_model.Paused)
     {
         _model.Resume();
         _pauseResumeButton.Text = "Pause";
     }
     else
     {
         _model.Pause();
         _pauseResumeButton.Text = "Resume";
     }
 }