diff --git a/Cavern.QuickEQ.Format/ConfigurationFile/ConfigurationFile.cs b/Cavern.QuickEQ.Format/ConfigurationFile/ConfigurationFile.cs index 4c4cf331..5935709b 100644 --- a/Cavern.QuickEQ.Format/ConfigurationFile/ConfigurationFile.cs +++ b/Cavern.QuickEQ.Format/ConfigurationFile/ConfigurationFile.cs @@ -70,7 +70,6 @@ public void AddSplitPoint(int index, string name) { ReferenceChannel channel = ((InputChannel)end[i].Filter).Channel; end[i].AddChild(new OutputChannel(channel)); } - return; } } diff --git a/CavernSamples/Cavern.WPF/BaseClasses/OkCancelDialog.cs b/CavernSamples/Cavern.WPF/BaseClasses/OkCancelDialog.cs new file mode 100644 index 00000000..08e3dcf3 --- /dev/null +++ b/CavernSamples/Cavern.WPF/BaseClasses/OkCancelDialog.cs @@ -0,0 +1,21 @@ +using System.Windows; + +namespace Cavern.WPF.BaseClasses { + /// + /// A dialog with OK and Cancel buttons. + /// + public class OkCancelDialog : Window { + /// + /// Closes the dialog with the settings applied. + /// + protected virtual void OK(object _, RoutedEventArgs e) { + DialogResult = true; + Close(); + } + + /// + /// Closes the dialog with no change applied. + /// + protected void Cancel(object _, RoutedEventArgs e) => Close(); + } +} \ No newline at end of file diff --git a/CavernSamples/Cavern.WPF/BiquadEditor.xaml b/CavernSamples/Cavern.WPF/BiquadEditor.xaml index 86d3dd17..6926fe8e 100644 --- a/CavernSamples/Cavern.WPF/BiquadEditor.xaml +++ b/CavernSamples/Cavern.WPF/BiquadEditor.xaml @@ -1,8 +1,9 @@ - @@ -34,4 +35,4 @@