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