Esempio n. 1
0
 private void StartPause()
 {
     if (AmeisenBot.IsRunning)
     {
         AmeisenBot.Pause();
         buttonStartPause.Content    = "▶";
         buttonStartPause.Foreground = TextAccentBrush;
     }
     else
     {
         AmeisenBot.Resume();
         buttonStartPause.Content    = "||";
         buttonStartPause.Foreground = DarkForegroundBrush;
     }
 }
Esempio n. 2
0
 private void ButtonStartPause_Click(object sender, RoutedEventArgs e)
 {
     if (AmeisenBot.IsRunning)
     {
         AmeisenBot.Pause();
         buttonStartPause.Content    = "▶";
         buttonStartPause.Foreground = TextAccentBrush;
     }
     else
     {
         AmeisenBot.Resume();
         buttonStartPause.Content    = "||";
         buttonStartPause.Foreground = DarkForegroundBrush;
     }
 }