예제 #1
0
        /// <summary>
        /// Form load event
        /// </summary>
        private void MainForm_Load(object sender, EventArgs e)
        {
            string gdocbakcupVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();

            this.Icon = Properties.Resources.Logo;

            this.Text += " - Ver. " + gdocbakcupVersion;

            this.StoreLogMsgInfo(-1, "FORM_LOAD: " + this.Text);

            if (Properties.Settings.Default.CallUpgrade)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.CallUpgrade = false;
                Properties.Settings.Default.Save();
            }

            this.ExecCheckUpdates();

            if (String.IsNullOrEmpty(Properties.Settings.Default.BackupDir))
            {
                using (ConfigForm cf = new ConfigForm())
                {
                    cf.ShowDialog();
                }
            }
        }
예제 #2
0
 private void configToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     using (ConfigForm cf = new ConfigForm())
     {
         cf.ShowDialog();
     }
 }