Search Results for

    Show / Hide Table of Contents

    Class MessageController

    The controller for interacting with the IMessage window.

    Responsible for displaying a message, along with custom buttons and returning the selected button as a result

    Inheritance
    object
    MessageController
    Implements
    IController
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Messages
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public class MessageController : IController

    Constructors

    MessageController(IMessage, IRootController)

    Declaration
    public MessageController(IMessage window, IRootController rootController)
    Parameters
    Type Name Description
    IMessage window
    IRootController rootController

    Properties

    OwningWindow

    The IMessage window for this controller

    Declaration
    public IWindow OwningWindow { get; }
    Property Value
    Type Description
    IWindow

    RootController

    The root application controller, for service access

    Declaration
    public IRootController RootController { get; }
    Property Value
    Type Description
    IRootController

    Methods

    DisplayMessage(MessageType, Exception)

    Initializes the message window with a specific message detailing the supplied error

    Declaration
    public void DisplayMessage(MessageType type, Exception ex)
    Parameters
    Type Name Description
    MessageType type

    The message type to use when displaying the error

    Exception ex

    The exception to detail to the user

    DisplayMessage(List<MessageButtonInfo>, string, string, ImageType)

    Initializes the message window with the specified buttons and message

    Declaration
    public void DisplayMessage(List<MessageButtonInfo> buttons, string title, string message, ImageType img)
    Parameters
    Type Name Description
    List<MessageButtonInfo> buttons

    The buttons to display alongside the message

    string title

    The title/header for the message window

    string message

    The message to be displayed to the user

    ImageType img

    The image to show alongside the message

    GetResult()

    Returns a task that holds the result of the button clicked by the user to dismiss the message window itself

    Declaration
    public Task<MessageResult> GetResult()
    Returns
    Type Description
    Task<MessageResult>

    A task that holds the result of the button clicked by the user to dismiss the message window itself

    Implements

    IController

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.