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