private bool ShowCollectInfoDialog() { CollectInfoDialog collectInfoDialog = new CollectInfoDialog(); if (null != Application.Current) collectInfoDialog.Owner = Application.Current.MainWindow; collectInfoDialog.ShowDialog(); return collectInfoDialog.CollectFeedback; }
private bool ShowCollectInfoDialog() { CollectInfoDialog collectInfoDialog = new CollectInfoDialog(); if (null != Application.Current) { collectInfoDialog.Owner = Application.Current.MainWindow; } collectInfoDialog.ShowDialog(); return(collectInfoDialog.CollectFeedback); }
private void OnLoaded(object sender, EventArgs e) { // Kick start a check for update version info, if the update manager is idle. UpdateManager.Instance.UpdateDownloaded += OnUpdatePackageDownloaded; UpdateManager.Instance.CheckForProductUpdate(); UpdateManager.Instance.ShutdownRequested += OnUpdateManagerShutdownRequested; string filepath = Configurations.GetSettingsFilePath(); if (!File.Exists(filepath)) { CollectInfoDialog collectInfoDialog = new CollectInfoDialog(); if (null != Application.Current) collectInfoDialog.Owner = Application.Current.MainWindow; collectInfoDialog.ShowDialog(); textCore.TextEditorSettings.CollectFeedback = collectInfoDialog.CollectFeedback; if (textCore.TextEditorSettings.CollectFeedback) Logger.FORCE_Log("CollectFeedbackOptIn", "Opt In"); else Logger.FORCE_Log("CollectFeedbackOptIn", "Opt Out"); } this.textCanvas.Focus(); }