C# 클래스 Tp.Integration.Ide.VisualStudio.Services.ControllerEnvironment

The default environment implementation.
상속: IControllerEnvironment
파일 보기 프로젝트 열기: TargetProcess/Tp.Integration.Ide.VisualStudio 1 사용 예제들

공개 메소드들

메소드 설명
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