C# Класс Tp.Integration.Ide.VisualStudio.Services.ControllerEnvironment

The default environment implementation.
Наследование: IControllerEnvironment
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

ControllerEnvironment() публичный Метод

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.
Результат System

ShowDialog() публичный Метод

Calls Form.ShowDialog() method on the specified instance and returns its return value.
public ShowDialog ( Form form ) : DialogResult
form System.Windows.Forms.Form
Результат DialogResult

ShowMessageBox() публичный Метод

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
Результат DialogResult