Class MessageBox
Implements Message box for displaying window with text and buttons
Inheritance
System.Object
MessageBox
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class MessageBox
Properties
DialogResult
Gets the dialog result.
Declaration
public MessageBoxResult DialogResult { get; }
Property Value
Type | Description |
---|---|
MessageBoxResult | The dialog result. |
Instance
Gets the instance.
Declaration
public static MessageBox Instance { get; }
Property Value
Type | Description |
---|---|
MessageBox | The instance. |
ResultCommand
Gets the result command.
Declaration
public ICommand ResultCommand { get; }
Property Value
Type | Description |
---|---|
ICommand | The result command. |
Methods
IsVisible()
Determines whether Message Box is visible.
Declaration
public bool IsVisible()
Returns
Type | Description |
---|---|
System.Boolean |
SetStyle(Style)
Sets the style.
Declaration
public void SetStyle(Style style)
Parameters
Type | Name | Description |
---|---|---|
Style | style | The style. |
Show(String, ICommand, Boolean)
Shows the specified message.
Declaration
public static void Show(string message, ICommand resultCommand, bool onMousePosition)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
ICommand | resultCommand | The result command. |
System.Boolean | onMousePosition | if set to |
Show(String, String, ICommand, Boolean)
Shows the specified message with caption
Declaration
public static void Show(string message, string caption, ICommand resultCommand, bool onMousePosition)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.String | caption | The caption. |
ICommand | resultCommand | The result command. |
System.Boolean | onMousePosition | if set to |
Show(String, String, MessageBoxButton, ICommand, Boolean)
Shows the specified message with caption and specified buttons
Declaration
public static void Show(string message, string caption, MessageBoxButton buttons, ICommand resultCommand, bool onMousePosition)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.String | caption | The caption. |
MessageBoxButton | buttons | The buttons. |
ICommand | resultCommand | The result command. |
System.Boolean | onMousePosition | if set to |