public static bool ShowWelcomeWindow(WelcomeWindowShowOptions options) { if (welcomeWindowProvider == null) { welcomeWindowProvider = AddinManager.GetExtensionObjects <IWelcomeWindowProvider> ().FirstOrDefault(); if (welcomeWindowProvider == null) { return(false); } } if (welcomeWindow == null) { welcomeWindow = welcomeWindowProvider.CreateWindow(); if (welcomeWindow == null) { return(false); } } welcomeWindowProvider.ShowWindow(welcomeWindow, options); visible = true; return(true); }
public static async Task <bool> ShowWelcomeWindow(WelcomeWindowShowOptions options) { if (WelcomeWindowProvider == null) { return(false); } await WelcomeWindowProvider.ShowWindow(options); visible = true; return(true); }
public static async void ShowWelcomePageOrWindow(WelcomeWindowShowOptions options = null) { if (options == null) { options = new WelcomeWindowShowOptions(true); } // Try to get a dialog version of the "welcome screen" first if (!await ShowWelcomeWindow(options)) { ShowWelcomePage(true); } }
public static async Task <bool> ShowWelcomeWindow(WelcomeWindowShowOptions options) { if (!HasWindowImplementation) { return(false); } await Runtime.RunInMainThread(async() => { await WelcomeWindowProvider.ShowWindow(options); visible = true; WelcomeWindowShown?.Invoke(WelcomeWindow, EventArgs.Empty); }); return(true); }