Gorgon
Show / Hide Table of Contents

Interface IMessageDisplayService

A display service for showing messages on the UI.

Namespace: Gorgon.Editor.Services
Assembly: Gorgon.Editor.API.dll
Syntax
public interface IMessageDisplayService

Methods

| Edit this page View Source

ShowConfirmation(string, string, bool, bool)

Function to show a confirmation message.

Declaration
MessageResponse ShowConfirmation(string message, string caption = null, bool toAll = false, bool allowCancel = false)
Parameters
Type Name Description
string message

The message to display.

string caption

[Optional] A caption for the message.

bool toAll

[Optional] true to allow an application to apply the result to all items, false to only allow an application to apply the result to a single item.

bool allowCancel

[Optional] true to allow cancellation support, false to only allow accept or deny functionality.

Returns
Type Description
MessageResponse

The response value for the message.

| Edit this page View Source

ShowError(Exception, string, string)

Function to show an error message based on an exception.

Declaration
void ShowError(Exception ex, string message = null, string caption = null)
Parameters
Type Name Description
Exception ex

The exception to display.

string message

[Optional] A custom message to display with the error.

string caption

[Optional] A caption for the message.

| Edit this page View Source

ShowError(string, string, string)

Function to show an error message with optional detail information.

Declaration
void ShowError(string message, string caption = null, string details = null)
Parameters
Type Name Description
string message

The message to display.

string caption

[Optional] A caption for the message.

string details

[Optional] Additional information for the error.

| Edit this page View Source

ShowInfo(string, string)

Function to show an informational message.

Declaration
void ShowInfo(string message, string caption = null)
Parameters
Type Name Description
string message

The message to display.

string caption

[Optional] A caption for the message.

| Edit this page View Source

ShowWarning(string, string, string)

Function to show a warning message.

Declaration
void ShowWarning(string message, string caption = null, string details = null)
Parameters
Type Name Description
string message

The message to display.

string caption

[Optional] A caption for the message.

string details

[Optional] Additional information for the error.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author