private void Window_Loaded(object sender, RoutedEventArgs e) { Window_SourceInitialized(this, null); Focus(); Topmost = true; Topmost = false; BringIntoView(); Activate(); Keyboard.Focus(this); loaderSettings = settings.GetMIDILoaderSettings(); var ls = loaderSettings.Clone(); audioThreads.Maximum = Environment.ProcessorCount; audioThresh.Value = ls.EventVelocityThreshold; visibleThresh.Value = ls.NoteVelocityThreshold; audioThreads.Value = ls.EventPlayerThreads; removeOverlaps.IsChecked = loaderSettings.RemoveOverlaps; if (settings.General.SkipLoadSettings) { ContinueLoading(); } }
public MIDILoaderSettings GetMIDILoaderSettings() { return(loaderSettings.Clone()); }