diff --git a/Views/MainWindow.xaml.cs b/Views/MainWindow.xaml.cs index fbf25d9..74c8f8f 100644 --- a/Views/MainWindow.xaml.cs +++ b/Views/MainWindow.xaml.cs @@ -244,7 +244,7 @@ namespace unison public void Consume_Clicked(object sender, RoutedEventArgs e) => _mpd.Consume(); public void ChangeVolume(int value) => _mpd.SetVolume(value); - public static void Snapcast_Clicked(object sender, RoutedEventArgs e) + public void Snapcast_Clicked(object sender, RoutedEventArgs e) { SnapcastHandler snapcast = (SnapcastHandler)Application.Current.Properties["snapcast"]; snapcast.LaunchOrExit(); diff --git a/Views/Settings.xaml.cs b/Views/Settings.xaml.cs index 6773c1d..19c55cd 100644 --- a/Views/Settings.xaml.cs +++ b/Views/Settings.xaml.cs @@ -85,7 +85,7 @@ namespace unison } } - private static void NumberValidationTextBox(object sender, TextCompositionEventArgs e) + private void NumberValidationTextBox(object sender, TextCompositionEventArgs e) { Regex regex = new Regex("[^0-9]+"); e.Handled = regex.IsMatch(e.Text); @@ -149,7 +149,7 @@ namespace unison MPDConnect_Clicked(null, null); } - private static void MPDDatabaseUpdate_Clicked(object sender, RoutedEventArgs e) + private void MPDDatabaseUpdate_Clicked(object sender, RoutedEventArgs e) { MPDHandler mpd = (MPDHandler)Application.Current.Properties["mpd"]; if (mpd.IsConnected()) @@ -180,7 +180,7 @@ namespace unison TimedText(UpdateDBMessage2, 2); } - private static void CheckUpdates(object sender, RoutedEventArgs e) + private void CheckUpdates(object sender, RoutedEventArgs e) { UpdateHandler updater = (UpdateHandler)Application.Current.Properties["updater"]; updater.Start(true);