private void RemoveProcess(string name) { RCProcess rcprocess = this._processCollection[name]; if (rcprocess != null) { this._processCollection.Remove(rcprocess.Name); if (this.ProcessRemove != null) { this.ProcessRemove(this, rcprocess); } rcprocess.SetRCClient(null); } }
private RCProcess AddProcess(RCProcess process) { process.SetRCClient(this); process.Log += this.ChildProcess_ProcessLog; process.StateChange += this.ChildProcess_StateChange; process.PerformanceUpdate += this.ChildProcess_PerformanceUpdate; process.SysCommand += this.ChildProcess_SysCommand; this._processCollection.Add(process); if (this.ProcessAdd != null) { this.ProcessAdd(this, process); } return(process); }