Example #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            if (Control.ModifierKeys == Keys.Shift)
            {
                cmdwindow f2 = new cmdwindow();
                f2.Show();

            }
            else
            {
                if (!myBGWorker.IsBusy)
                {
                    backgroundworkeriscancled = false;
                    updatelog("MD5 Calculator will start " + idlethreashhold + " munites after computer goes idle.");
                    watcher();
                }
                else
                {
                    updatelog("MD5 Calculator canceled.");
                    backgroundworkeriscancled = true;
                    myBGWorker.CancelAsync();

                }

            }
        }
Example #2
0
 private void myBGWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     progressBar1.Value = 0;
     if (!backgroundworkeriscancled)
     {
         cmdwindow f2 = new cmdwindow();
         f2.Show();
     }
     //watcher();
 }