private WPFJob(string name, string command, ScriptBlock scriptBlock, InitialSessionState initalSessionState, Hashtable parameters, bool isChildJob) : base(command, name) { this.initialSessionState = initalSessionState; if (isChildJob) { Start(scriptBlock, parameters); } else { WPFJob childJob = new WPFJob(name, command, scriptBlock, initalSessionState, parameters, true); childJob.StateChanged += new EventHandler <JobStateEventArgs>(childJob_StateChanged); this.ChildJobs.Add(childJob); } }
private WPFJob(string name, string command, ScriptBlock scriptBlock, InitialSessionState initalSessionState, Hashtable parameters, bool isChildJob) : base(command, name) { this.initialSessionState = initalSessionState; if (isChildJob) { Start(scriptBlock, parameters); } else { WPFJob childJob = new WPFJob(name, command, scriptBlock, initalSessionState, parameters, true); childJob.StateChanged += new EventHandler<JobStateEventArgs>(childJob_StateChanged); this.ChildJobs.Add(childJob); } }