/// <summary> /// Handler for AcceptButton Click event /// </summary> private void OnAcceptClick(object sender, RoutedEventArgs e) { // Handle non-bindable fields UIOptions.Options.InternalProgram = (this.Find <ComboBox>("InternalProgramComboBox").SelectedItem as InternalProgramComboBoxItem)?.Name ?? InternalProgram.DiscImageCreator.ToString(); UIOptions.Save(); Hide(); }
public OptionsViewModel(UIOptions uiOptions) { this._uiOptions = uiOptions; }