Ejemplo n.º 1
0
        private bool ShowCollectInfoDialog()
        {
            CollectInfoDialog collectInfoDialog = new CollectInfoDialog();
            if (null != Application.Current)
                collectInfoDialog.Owner = Application.Current.MainWindow;

            collectInfoDialog.ShowDialog();
            return collectInfoDialog.CollectFeedback;
        }
Ejemplo n.º 2
0
        private bool ShowCollectInfoDialog()
        {
            CollectInfoDialog collectInfoDialog = new CollectInfoDialog();

            if (null != Application.Current)
            {
                collectInfoDialog.Owner = Application.Current.MainWindow;
            }

            collectInfoDialog.ShowDialog();
            return(collectInfoDialog.CollectFeedback);
        }
Ejemplo n.º 3
0
        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();
        }