C# Class Tp.Integration.Ide.VisualStudio.Services.ControllerEnvironment

The default environment implementation.
Inheritance: IControllerEnvironment
Exibir arquivo Open project: TargetProcess/Tp.Integration.Ide.VisualStudio Class Usage Examples

Public Methods

Method Description
ControllerEnvironment ( IWin32Window mainWindow, TraceListener listener ) : System

Creates new instance of this class.

ShowDialog ( Form form ) : DialogResult

Calls Form.ShowDialog() method on the specified instance and returns its return value.

ShowMessageBox ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon ) : DialogResult

Calls MessageBox.Show(string, string, MessageBoxButtons, MessageBoxIcon) method with the specified parameters and returns its return value.

Method Details

ControllerEnvironment() public method

Creates new instance of this class.
public ControllerEnvironment ( IWin32Window mainWindow, TraceListener listener ) : System
mainWindow IWin32Window An implementation of that will own the modal dialog boxes.
listener System.Diagnostics.TraceListener An arbitrary instance.
return System

ShowDialog() public method

Calls Form.ShowDialog() method on the specified instance and returns its return value.
public ShowDialog ( Form form ) : DialogResult
form System.Windows.Forms.Form
return DialogResult

ShowMessageBox() public method

Calls MessageBox.Show(string, string, MessageBoxButtons, MessageBoxIcon) method with the specified parameters and returns its return value.
public ShowMessageBox ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon ) : DialogResult
text string
caption string
buttons MessageBoxButtons
icon MessageBoxIcon
return DialogResult