private void parentalControlsButton_Click(object sender, EventArgs e) { MovieFilterEditorPopup popup = new MovieFilterEditorPopup(); // attach the filter, show the popup, and if necisarry, save the results popup.FilterPane.AttachedFilter = MovingPicturesCore.Settings.ParentalControlsFilter; popup.ShowHelpButton = true; popup.HelpAction = new HelpActionDelegate(delegate { ProcessStartInfo processInfo = new ProcessStartInfo(Resources.ParentalControlsURL); Process.Start(processInfo); }); DialogResult result = popup.ShowDialog(); if (result == DialogResult.OK) MovingPicturesCore.Settings.ParentalControlsFilter.Commit(); else MovingPicturesCore.Settings.ParentalControlsFilter.Revert(); }
private void LaunchSyncFilterDialog() { MovieFilterEditorPopup popup = new MovieFilterEditorPopup(); // attach the filter, show the popup, and if necisarry, save the results popup.FilterPane.AttachedFilter = MovingPicturesCore.Settings.FollwitSyncFilter; DialogResult result = popup.ShowDialog(); if (result == DialogResult.OK) { MovingPicturesCore.Settings.FollwitSyncFilter.Commit(); Sync(); } else MovingPicturesCore.Settings.FollwitSyncFilter.Revert(); }