Inheritance: System.Windows.Forms.Form
Exemple #1
0
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AboutBox about = new AboutBox();
     about.Show();
 }
Exemple #2
0
        public static void SyncSettings()
        {
            String currentVersion = "";
            try
            {
                currentVersion = ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString();
            }
            catch
            {

            }

            //this will always update when debugging
            if (!Settings.Default.settings_ver.Equals(currentVersion))
            {
                Settings.Default.Upgrade();

                String email = Settings.Default.email;
                bool firefox = Settings.Default.firefox;
                String app_secret = Settings.Default.app_secret;

                Settings.Default.Reset();

                Settings.Default.email = email;
                Settings.Default.firefox = firefox;
                Settings.Default.app_secret = app_secret;
                Settings.Default.settings_ver = currentVersion;
                Settings.Default.Save();

                AboutBox aboutBox = new AboutBox();
                aboutBox.Show();
                aboutBox.TopMost = true;
            }
        }