private UserSettings LoadSettings() { var settings = Model.Context.GetSettings(GetSettingsKey()); if (PreviewWindow.IsDoNotShowPreviewWindowEnabled()) { settings.ShowPreviewWindow = false; } return(settings); }
private UserSettings LoadSettings() { var settings = Model.Context.UserSettingsManager.GetSettings(GetSettingsKey()); if (PreviewWindow.IsDoNotShowPreviewWindowEnabled()) { settings.ShowPreviewWindow = false; } if (DotnetDeprecatedPrompt.GetDoNotShowPromptState()) { settings.ShowDeprecatedFrameworkWindow = false; } return(settings); }
public bool PromptForPreviewAcceptance(IEnumerable <PreviewResult> actions) { bool result = false; UIDispatcher.Invoke(() => { var w = new PreviewWindow(); w.DataContext = new PreviewWindowModel(actions); if (StandaloneSwitch.IsRunningStandalone && DetailControl != null) { Window win = Window.GetWindow(DetailControl); w.Owner = win; } result = w.ShowModal() == true; }); return(result); }
public bool PromptForPreviewAcceptance(IEnumerable<PreviewResult> actions) { bool result = false; UIDispatcher.Invoke(() => { var w = new PreviewWindow(); w.DataContext = new PreviewWindowModel(actions); if (StandaloneSwitch.IsRunningStandalone && DetailControl != null) { Window win = Window.GetWindow(DetailControl); w.Owner = win; } result = w.ShowModal() == true; }); return result; }
public bool PromptForPreviewAcceptance(IEnumerable<PreviewResult> actions) { var result = false; if (actions.Any()) { InvokeOnUIThread(() => { var w = new PreviewWindow(UIContext); w.DataContext = new PreviewWindowModel(actions); result = w.ShowModal() == true; }); } else { return true; } return result; }
public bool PromptForPreviewAcceptance(IEnumerable <PreviewResult> actions) { var result = false; if (actions.Any()) { UIDispatcher.Invoke(() => { var w = new PreviewWindow(UIContext); w.DataContext = new PreviewWindowModel(actions); result = w.ShowModal() == true; }); } else { return(true); } return(result); }