Пример #1
0
        protected override void OnShown(EventArgs e)
        {
            // Validate preferences and local repository
            while (string.IsNullOrWhiteSpace(Settings.Default.UserId) || !CheckLicense())
            {
                PreferenceDialog prefDlg = new PreferenceDialog();
                System.Windows.Forms.DialogResult res = prefDlg.ShowDialog();
                if (res == System.Windows.Forms.DialogResult.Cancel)
                {
                    Environment.Exit(0);
                }
            }

            base.OnActivated(e);

            // Enable timers and multithreading
            busy = false;
        }
Пример #2
0
        private void folderPrefMenuItem_Click(object sender, EventArgs e)
        {
            PreferenceDialog prefDlg = new PreferenceDialog();
            prefDlg.ShowDialog();

            this.graphCloseControl.ShowVariation = Settings.Default.ShowVariation;

            OnNeedReinitialise(true);
        }