Ejemplo n.º 1
0
 private void PauseRun(Object obj)
 {
     if (Model.SearchStatus == SearchStatus.NotRun)
     {
         return;
     }
     if (Model.SearchStatus == SearchStatus.Pause)
     {
         if (obj is Button button1)
         {
             button1.Background = new SolidColorBrush(Color.FromArgb(221, 221, 221, 221));
         }
         Model.Resume();
         TimerForWPF.Resume();
         return;
     }
     if (obj is Button button)
     {
         button.Background = Brushes.Aqua;
     }
     Model.Pause();
     TimerForWPF.Pause();
 }