public RCProcessCollection ProcessClone() { RCProcessCollection rcprocessCollection = new RCProcessCollection(); foreach (RCProcess rcprocess in this.ProcessList) { rcprocessCollection.Add(rcprocess.Clone()); } return(rcprocessCollection); }
public RCClient(int version, string serverIP, int serverPort, string displayName, RCProcessCollection processCollection) : this(0, "") { this.Version = version; this.ServerIP = serverIP; this.ServerPort = serverPort; this.Name = displayName; this._processCollection = new RCProcessCollection(); foreach (RCProcess rcprocess in processCollection) { this.AddProcess(rcprocess.Clone()); } this._initialized = true; }