Ejemplo n.º 1
0
 private void getRunningProcesses()
 {
     this.ProcessList.Items.Clear();
     foreach (string procName in ProcSync.getAllMainProcs())
     {
         this.ProcessList.Items.Add(procName);
     }
 }
Ejemplo n.º 2
0
 public static void Reset(string name)
 {
     if (ProcSync.procs.ContainsKey(name))
     {
         int cnt = ProcSync.getProcCount(name);
         ProcSync.procs.Remove(name);
         ProcCount -= cnt;
     }
 }
Ejemplo n.º 3
0
 private void execKiller_Click(object sender, EventArgs e)
 {
     if (this.ProcessList.Text != "")
     {
         string id = this.ProcessList.Text;
         if (ProcSync.isRegistered(id))
         {
             ProcSync.removeMainProc(id);
         }
     }
     getRunningProcesses();
 }
Ejemplo n.º 4
0
 private void stopScr_Click(object sender, EventArgs e)
 {
     ProcSync.Reset(RefScriptExecute.PROC_NAME);
     executer.StopNow();
 }