示例#1
0
 /// <summary>
 /// Called first time frame shown (only once)
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void FormGUI_Shown(object sender, EventArgs e)
 {
     if (NeedToCheckForUpdate())
     {
         CheckForUpdateDelegate d = CheckForUpdate;
         Invoke(d, new object[] { false });
     }
 }
示例#2
0
 private void checkForUpdateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.InvokeRequired)
     {
         CheckForUpdateDelegate d = CheckForUpdate;
         Invoke(d, new object[] { true });
         return;
     }
     CheckForUpdate(true);
 }
示例#3
0
        public FormMain()
        {
            InitializeComponent();

            lblCopyright.Text = lblCopyright.Text + "  .  Version " + Assembly.GetEntryAssembly().GetName().Version.ToString() + "  .  Licensed under GPLv3";

            bwCleanup.WorkerReportsProgress      = true;
            bwCleanup.WorkerSupportsCancellation = true;
            bwCleanup.DoWork             += new DoWorkEventHandler(bwCleanup_DoWork);
            bwCleanup.ProgressChanged    += new ProgressChangedEventHandler(bwCleanup_ProgressChanged);
            bwCleanup.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bwCleanup_RunWorkerCompleted);

            // Check for updates on another thread.
            CheckForUpdateDelegate d = checkForUpdate;

            d.BeginInvoke(null, null);

            //rchMarketing.Rtf = "REBEL is simple, powerful, and easy to use.\par REBEL clears system caches, temporary files, empties the Recycle Bin, and performs routine maintenance; but, REBEL will not delete any of your personal files.\par"
            //rchMarketing.Rtf = @"{\rtf1\ansi{\fonttbl\f0\fswiss Arial;}\f0\pard REBEL is simple, powerful, and easy to use.\par REBEL clears system caches, temporary files, empties the Recycle Bin, and performs routine maintenance; but, REBEL will not delete any of your personal files.\par}";
        }