Search Results for

    Show / Hide Table of Contents

    Class ButtonController

    A standard view that adds a specific button to the view that can perform any command available from the system

    The IButtonView view that this works with specifies that the parameter for the view is of type ButtonViewParams

    Inheritance
    object
    ModelViewController
    ButtonController
    Implements
    IModelViewController
    Inherited Members
    ModelViewController.InitAsync()
    ModelViewController.DisplayItem(object)
    ModelViewController.GetCurrentDisplayedItem(object)
    ModelViewController.Redisplay()
    ModelViewController.Clear()
    ModelViewController.CloseController()
    ModelViewController.OnTrackedItemChanged(object, string)
    ModelViewController.GetCanWrite(object)
    ModelViewController.ShouldDisplayItem(object)
    ModelViewController.RemoveHandlers(object)
    ModelViewController.AddHandlers(object)
    ModelViewController.RemoveCommand(ViewCommand)
    ModelViewController.RemoveCommands<TOfType>()
    ModelViewController.InsertCommand(ViewCommand, int)
    ModelViewController.InsertCommand(ViewCommand, ViewCommand, ViewCommand)
    ModelViewController.UpdateAllCommands()
    ModelViewController.GetNestedViews()
    ModelViewController.RootController
    ModelViewController.ServiceContext
    ModelViewController.UIContext
    ModelViewController.CanWrite
    ModelViewController.ListenToChanges
    ModelViewController.TrackChanges
    ModelViewController.CheckIsLockedForCanWrite
    ModelViewController.DisplayIfNull
    ModelViewController.CurrentDisplayedItem
    ModelViewController.View
    ModelViewController.Commands
    ModelViewController.SelectedItemForSubViews
    ModelViewController.ContextHelpURL
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Views.Controllers
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public class ButtonController : ModelViewController, IModelViewController

    Constructors

    ButtonController(IButtonView)

    Creates a new ButtonViewController

    Declaration
    public ButtonController(IButtonView view)
    Parameters
    Type Name Description
    IButtonView view

    The IButtonView view implementation using the UI components of the client application

    Methods

    DisplayUI()

    Calls the ShowButton() so the ui in the client application can display the button in any manner that works for that ui.

    It can even do nothing, as the command is also added to the Commands of this controller anyway, and is accessible that way too

    Declaration
    public override Task DisplayUI()
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.DisplayUI()

    InitCommands(IList<ViewCommand>)

    Takes the configuration of the View.Descriptor.Param as a ButtonViewParams and uses it to construct the command that should be added to this controllers command collection and optionally available as a command on the view

    Declaration
    protected override void InitCommands(IList<ViewCommand> commands)
    Parameters
    Type Name Description
    IList<ViewCommand> commands

    The list of commands available to be accessed by the user from this view

    Overrides
    ModelViewController.InitCommands(IList<ViewCommand>)

    Implements

    IModelViewController

    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.