private void element_open_Click(object sender, RoutedEventArgs e) { var tag = ((sender as FrameworkElement).Tag as Object[]); if (tag[0] is Notes) { PseudoWindow.OpenWindow(() => new Widgets.NotesEdit(tag[0] as Notes)); } }
private void Open_Click(object sender, RoutedEventArgs e) { if (synth is BasicSynth) { PseudoWindow.OpenWindow(() => new Widgets.BasicSynthUi(synth as BasicSynth)); } else if (synth is BasicPercussion) { PseudoWindow.OpenWindow(() => new Widgets.BasicPercussionUI(synth as BasicPercussion)); } else if (synth is VSTi) { (synth as VSTi).ShowWindow(); } }
private void ButtonPretty_OnClick(object sender, RoutedEventArgs e) { if (effect is NonlinearDistortion) { PseudoWindow.OpenWindow(() => new NonlinearDistortionUI(effect as NonlinearDistortion)); } else if (effect is Reverb) { PseudoWindow.OpenWindow(() => new ReverbUI(effect as Reverb)); } else if (effect is Flanger) { PseudoWindow.OpenWindow(() => new FlangerUI(effect as Flanger)); } else if (effect is SimpleFilter) { PseudoWindow.OpenWindow(() => new SimpleFilterUI(effect as SimpleFilter)); } }
private void openInputsButton_Click(object sender, RoutedEventArgs e) { PseudoWindow.OpenWindow(() => new Widgets.InputsUi()); }
private void OpenSynthsButton_OnClick(object sender, RoutedEventArgs e) { PseudoWindow.OpenWindow(() => new Widgets.Synths()); }
private void openOscilloscopeButton_Click(object sender, RoutedEventArgs e) { PseudoWindow.OpenWindow(() => new Widgets.Oscilloscope()); }
private void openMixerButton_Click(object sender, RoutedEventArgs e) { PseudoWindow.OpenWindow(() => new Widgets.Mixer()); }
private void openTimelineButton_Click(object sender, RoutedEventArgs e) { PseudoWindow.OpenWindow(() => new Widgets.Timeline()); }