C# 클래스 FdoToolbox.Base.Scripting.HostApplication

A helper class that exposes the FDO Toolbox application model and core services out for python scripts to consume.
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox 1 사용 예제들

공개 메소드들

메소드 설명
Ask ( string title, string message ) : bool

Displays a question in the form of a yes/no response.

CreateFdoConnection ( string provider, string connectionString, string name ) : void

Creates the fdo connection.

CreateFdoFileConnection ( string file, string name ) : void

Creates the fdo connection.

GetFileForOpen ( string title, string filter ) : string

Invokes an open file dialog and returns the selected filename. If no selection was made, an empty string is returned

GetFileForSave ( string title, string filter ) : string

Invokes a save file dialog and returns the selected filename. If no selection was made, an empty string is returned

GetInput ( string title ) : string

Displays a prompt for user input. If user cancels, null is returned.

LoadConnection ( string path ) : void

Loads a saved connection, the name of the connection will be the name of the file (without the file extension)

PickConnection ( ) : FdoConnection

Prompts the user for a currently open connection

ShowMessage ( string title, string message ) : void

Shows the message in a simple dialog box

WriteLine ( string msg ) : void

Writes the specified message to the application console.

비공개 메소드들

메소드 설명
InitializeScriptScope ( ScriptScope scope ) : void

메소드 상세

Ask() 공개 정적인 메소드

Displays a question in the form of a yes/no response.
public static Ask ( string title, string message ) : bool
title string
message string
리턴 bool

CreateFdoConnection() 공개 정적인 메소드

Creates the fdo connection.
public static CreateFdoConnection ( string provider, string connectionString, string name ) : void
provider string The provider.
connectionString string The connection string.
name string The name.
리턴 void

CreateFdoFileConnection() 공개 정적인 메소드

Creates the fdo connection.
public static CreateFdoFileConnection ( string file, string name ) : void
file string The file.
name string The name.
리턴 void

GetFileForOpen() 공개 정적인 메소드

Invokes an open file dialog and returns the selected filename. If no selection was made, an empty string is returned
public static GetFileForOpen ( string title, string filter ) : string
title string The title.
filter string The filter.
리턴 string

GetFileForSave() 공개 정적인 메소드

Invokes a save file dialog and returns the selected filename. If no selection was made, an empty string is returned
public static GetFileForSave ( string title, string filter ) : string
title string The title.
filter string The filter.
리턴 string

GetInput() 공개 정적인 메소드

Displays a prompt for user input. If user cancels, null is returned.
public static GetInput ( string title ) : string
title string
리턴 string

LoadConnection() 공개 정적인 메소드

Loads a saved connection, the name of the connection will be the name of the file (without the file extension)
public static LoadConnection ( string path ) : void
path string
리턴 void

PickConnection() 공개 정적인 메소드

Prompts the user for a currently open connection
public static PickConnection ( ) : FdoConnection
리턴 FdoToolbox.Core.Feature.FdoConnection

ShowMessage() 공개 정적인 메소드

Shows the message in a simple dialog box
public static ShowMessage ( string title, string message ) : void
title string The title.
message string The message.
리턴 void

WriteLine() 공개 정적인 메소드

Writes the specified message to the application console.
public static WriteLine ( string msg ) : void
msg string The message
리턴 void