Exemplo n.º 1
0
 private void GetProcess()
 {
     wait = true;
     if (PID_arma3 == 0)
     {
         if (File.Exists(appdata + "PID.dat"))
         {
             string tmp = File.ReadAllText(appdata + "PID.dat");
             PID_arma3 = Int32.Parse(tmp);
         }
     }
     try
     {
         myProcesses = Process.GetProcesses();
         foreach (Process myProcess in myProcesses)
         {
             if (myProcess.Id == PID_arma3)
             {
                 myProcess.Kill();
             }
         }
     }
     catch
     {
     }
     if (cancreateMD5)
     {
         CreateMD5.RunWorkerAsync();
         cancreateMD5 = false;
     }
 }
Exemplo n.º 2
0
 private void Start_Buttons_Click(object sender, EventArgs e)
 {
     CreateMD5.RunWorkerAsync();
 }