Ejemplo n.º 1
0
 private void BGthread_DoWork(object sender, DoWorkEventArgs e)
 {
     for (; ;)
     {
         if (memLib.OpenProcess(Offsets.ProcessName) == true)
         {
             ProcessStatus = true;
             Thread.Sleep(1000);
         }
         else
         {
             Thread.Sleep(1000);
             return;
         }
         BGthread.ReportProgress(1);
     }
 }
Ejemplo n.º 2
0
 private void Form1_Shown(object sender, EventArgs e)
 {
     BGthread.RunWorkerAsync();
 }
Ejemplo n.º 3
0
 private void BGthread_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     BGthread.RunWorkerAsync();
 }