C# 클래스 GoogleCloudExtension.Utils.UserPromptUtils

This class provides helpers to show messages to the user in a uniform way.
파일 보기 프로젝트 열기: GoogleCloudPlatform/google-cloud-visualstudio 1 사용 예제들

공개 메소드들

메소드 설명
ActionPrompt ( string prompt, string title, string message = null, string actionCaption = null, string cancelCaption = null, bool isWarning = false ) : bool

Show a message dialog with a Yes and No button to the user.

ErrorPrompt ( string message, string title ) : void

Shows an error message dialog to the user, with an Ok button.

ExceptionPrompt ( AggregateException ex ) : void

Shows an error message for the given AggregateException.

ExceptionPrompt ( Exception ex ) : void

Shows an error message for the given exception.

OkPrompt ( string message, string title ) : void

Shows a message dialog to the user with an Ok button.

메소드 상세

ActionPrompt() 공개 정적인 메소드

Show a message dialog with a Yes and No button to the user.
public static ActionPrompt ( string prompt, string title, string message = null, string actionCaption = null, string cancelCaption = null, bool isWarning = false ) : bool
prompt string The message for the dialog.
title string The title for the dialog.
message string The message to show under the prompt.
actionCaption string The caption for the action button, it will be "Yes" by default.
cancelCaption string The caption for the cancel button, it will be "Cancel" by default.
isWarning bool
리턴 bool

ErrorPrompt() 공개 정적인 메소드

Shows an error message dialog to the user, with an Ok button.
public static ErrorPrompt ( string message, string title ) : void
message string The message for the dialog.
title string The title for the dialog.
리턴 void

ExceptionPrompt() 공개 정적인 메소드

Shows an error message for the given AggregateException.
public static ExceptionPrompt ( AggregateException ex ) : void
ex System.AggregateException The exception to show.
리턴 void

ExceptionPrompt() 공개 정적인 메소드

Shows an error message for the given exception.
public static ExceptionPrompt ( Exception ex ) : void
ex System.Exception The exception to show.
리턴 void

OkPrompt() 공개 정적인 메소드

Shows a message dialog to the user with an Ok button.
public static OkPrompt ( string message, string title ) : void
message string The message for the dialog.
title string The title for the dialog.
리턴 void