private void getRunningProcesses() { this.ProcessList.Items.Clear(); foreach (string procName in ProcSync.getAllMainProcs()) { this.ProcessList.Items.Add(procName); } }
public static void Reset(string name) { if (ProcSync.procs.ContainsKey(name)) { int cnt = ProcSync.getProcCount(name); ProcSync.procs.Remove(name); ProcCount -= cnt; } }
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(); }
private void stopScr_Click(object sender, EventArgs e) { ProcSync.Reset(RefScriptExecute.PROC_NAME); executer.StopNow(); }