C# 클래스 ACAT.Lib.Extension.DialogUtils

Contains useful utility cover functions such as Yes/No confirmation dialogs, Timed dialogs, Toast Dialog, launching functional agents etc.
파일 보기 프로젝트 열기: brlima94/acat-localization

공개 메소드들

메소드 설명
Confirm ( IPanel parent, String caption, String title = null ) : bool

Displays a yes no confirmation dialog box

Confirm ( String caption ) : bool

Displays a yes no confirmation dialog box

Confirm ( String caption, String title ) : bool

Displays a yes no confirmation dialog box.

ConfirmScanner ( IPanel parent, String caption ) : bool

Displays yes/no confirmation as a contextual menu scanner

ConfirmScanner ( String caption ) : bool

Displays yes/no confirmation as a contextual menu scanner

ConfirmScannerNarrow ( IPanel parent, String caption, String title = null ) : bool

Displays yes/no confirmation as a narrow contextual menu scanner

ConfirmScannerNarrow ( String caption ) : bool

Displays yes/no confirmation as a narrow contextual menu scanner

LaunchVolumeSettingsAgent ( ) : void

Runs the volume settings agent to control the volume of text to speech

ShowAboutBox ( Form parentForm, String logo, String appName, String versionInfo, String copyrightInfo, IEnumerable attributions ) : void

Displays the About box

ShowAppLauncher ( ) : void

Activates the functional agent responsible for launching applications

ShowFileBrowser ( ) : void

Activates the File Browser functional agent.

ShowTaskSwitcher ( string taskName = "" ) : void

Activates the Switch Windows functional agent to enable the user to switch windows/apps. If taskname is not null, it only shows windows belonging to the task (eg notepad, word)

ShowTaskSwitcherAltTab ( String taskName = "" ) : void

Displays the task switcher form which is the Alt-Tab equivalent to switch between application windows. If taskname is not null, it only shows windows belonging to the task (eg notepad, word)

ShowTimedDialog ( Form parentForm, String message ) : void

Shows the TimedDialog window

ShowTimedDialog ( Form parentForm, String title, String message ) : void

Shows the TimedDialog window

Toast ( String message, int timeout = 2000 ) : void

Displays a toast message centered in the parent form.

비공개 메소드들

메소드 설명
initYesNoDialog ( String title, String caption ) : Form

Creates the Yes/No dialog form

initYesNoScanner ( String panelClass, String title, String caption ) : Form

Creates the Yes/No scanner form

showYesNoScanner ( IPanel parent, String panelClass, String caption ) : bool

Creates the yes/no scanner form and shows it as a dialog. Returns the result of the user choice

메소드 상세

Confirm() 공개 정적인 메소드

Displays a yes no confirmation dialog box
public static Confirm ( IPanel parent, String caption, String title = null ) : bool
parent IPanel parent scanner
caption String prompt string
title String title of the dialog
리턴 bool

Confirm() 공개 정적인 메소드

Displays a yes no confirmation dialog box
public static Confirm ( String caption ) : bool
caption String Prompt string
리턴 bool

Confirm() 공개 정적인 메소드

Displays a yes no confirmation dialog box.
public static Confirm ( String caption, String title ) : bool
caption String Prompt string
title String title of the dialog
리턴 bool

ConfirmScanner() 공개 정적인 메소드

Displays yes/no confirmation as a contextual menu scanner
public static ConfirmScanner ( IPanel parent, String caption ) : bool
parent IPanel parent scanner
caption String prompt string
리턴 bool

ConfirmScanner() 공개 정적인 메소드

Displays yes/no confirmation as a contextual menu scanner
public static ConfirmScanner ( String caption ) : bool
caption String prompt string
리턴 bool

ConfirmScannerNarrow() 공개 정적인 메소드

Displays yes/no confirmation as a narrow contextual menu scanner
public static ConfirmScannerNarrow ( IPanel parent, String caption, String title = null ) : bool
parent IPanel parent scanner
caption String prompt string
title String scanner title
리턴 bool

ConfirmScannerNarrow() 공개 정적인 메소드

Displays yes/no confirmation as a narrow contextual menu scanner
public static ConfirmScannerNarrow ( String caption ) : bool
caption String prompt string
리턴 bool

LaunchVolumeSettingsAgent() 공개 정적인 메소드

Runs the volume settings agent to control the volume of text to speech
public static LaunchVolumeSettingsAgent ( ) : void
리턴 void

ShowAboutBox() 공개 정적인 메소드

Displays the About box
public static ShowAboutBox ( Form parentForm, String logo, String appName, String versionInfo, String copyrightInfo, IEnumerable attributions ) : void
parentForm System.Windows.Forms.Form parent form
logo String filename of the logo to display
appName String Name of the assembly
versionInfo String version information
copyrightInfo String copyright info
attributions IEnumerable 3rd party attributions
리턴 void

ShowAppLauncher() 공개 정적인 메소드

Activates the functional agent responsible for launching applications
public static ShowAppLauncher ( ) : void
리턴 void

ShowFileBrowser() 공개 정적인 메소드

Activates the File Browser functional agent.
public static ShowFileBrowser ( ) : void
리턴 void

ShowTaskSwitcher() 공개 정적인 메소드

Activates the Switch Windows functional agent to enable the user to switch windows/apps. If taskname is not null, it only shows windows belonging to the task (eg notepad, word)
public static ShowTaskSwitcher ( string taskName = "" ) : void
taskName string filter by this process name
리턴 void

ShowTaskSwitcherAltTab() 공개 정적인 메소드

Displays the task switcher form which is the Alt-Tab equivalent to switch between application windows. If taskname is not null, it only shows windows belonging to the task (eg notepad, word)
public static ShowTaskSwitcherAltTab ( String taskName = "" ) : void
taskName String filter by this process name
리턴 void

ShowTimedDialog() 공개 정적인 메소드

Shows the TimedDialog window
public static ShowTimedDialog ( Form parentForm, String message ) : void
parentForm System.Windows.Forms.Form parent form
message String message to display
리턴 void

ShowTimedDialog() 공개 정적인 메소드

Shows the TimedDialog window
public static ShowTimedDialog ( Form parentForm, String title, String message ) : void
parentForm System.Windows.Forms.Form parent form
title String title of the dialog
message String message to display
리턴 void

Toast() 공개 정적인 메소드

Displays a toast message centered in the parent form.
public static Toast ( String message, int timeout = 2000 ) : void
message String message to display
timeout int how long to display
리턴 void