Exemplo n.º 1
0
 private void StartPause()
 {
     if (AmeisenBot.IsRunning)
     {
         AmeisenBot.Pause();
         buttonStartPause.Content    = "▶";
         buttonStartPause.Foreground = TextAccentBrush;
     }
     else
     {
         AmeisenBot.Resume();
         buttonStartPause.Content    = "||";
         buttonStartPause.Foreground = DarkForegroundBrush;
     }
 }
Exemplo 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;
     }
 }