private void ResetButton_Click(object sender, EventArgs e) { try { ResetClick?.Invoke(this, new EventArgs()); } catch (BaseException ex) { ExceptionDialog.Show(ex); } }
private void Reset_Click(object sender, RoutedEventArgs e) => ResetClick?.Invoke(this, new EventArgs());
private void Button_Reset_OnClick(object sender, RoutedEventArgs e) { ResetClick?.Invoke(); }
private void ResetPlaylist_Click(object sender, RoutedEventArgs e) { IPlaylist playlist = (IPlaylist)((FrameworkElement)sender).DataContext; ResetClick?.Invoke(this, new PlaylistActionEventArgs(playlist)); }