Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private void DoPrint()
}

// set up the callback mechanism
pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage);
pd.PrintPage += this.pd_PrintPage;

// start printing
pd.Print();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ private PowerShell BuildPowerShellForGetCommand()
powerShell.AddParameter("ArgumentList", this.ArgumentList);

powerShell.Runspace = Session.Runspace;
powerShell.RemotePowerShell.HostCallReceived += new EventHandler<RemoteDataEventArgs<RemoteHostCall>>(HandleHostCallReceived);
powerShell.RemotePowerShell.HostCallReceived += HandleHostCallReceived;
return powerShell;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ private void RunScriptSilentlyAndWithErrorHookup(string script)
// errors are not created here, because there is a field for it used in the final pop up
PSDataCollection<object> output = new PSDataCollection<object>();

output.DataAdded += new EventHandler<DataAddedEventArgs>(this.Output_DataAdded);
_errors.DataAdded += new EventHandler<DataAddedEventArgs>(this.Error_DataAdded);
output.DataAdded += this.Output_DataAdded;
_errors.DataAdded += this.Error_DataAdded;

System.Management.Automation.PowerShell ps = System.Management.Automation.PowerShell.Create(RunspaceMode.CurrentRunspace);
ps.Streams.Error = _errors;
Expand Down