Search Results for

    Show / Hide Table of Contents

    Class RoleMenuController

    this was done before CreateViewFallback(Type, Type, string)

    Inheritance
    object
    ModelViewController
    RoleMenuController
    Implements
    IModelViewController
    IRoleMenuItemController
    Inherited Members
    ModelViewController.InitAsync()
    ModelViewController.DisplayItem(object)
    ModelViewController.GetCurrentDisplayedItem(object)
    ModelViewController.Redisplay()
    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.GetNestedViews()
    ModelViewController.RootController
    ModelViewController.ServiceContext
    ModelViewController.UIContext
    ModelViewController.CanWrite
    ModelViewController.ListenToChanges
    ModelViewController.TrackChanges
    ModelViewController.CheckIsLockedForCanWrite
    ModelViewController.DisplayIfNull
    ModelViewController.CurrentDisplayedItem
    ModelViewController.View
    ModelViewController.Commands
    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.ClientEntities.dll
    Syntax
    public class RoleMenuController : ModelViewController, IModelViewController, IRoleMenuItemController

    Constructors

    RoleMenuController(IModelView)

    Declaration
    public RoleMenuController(IModelView view)
    Parameters
    Type Name Description
    IModelView view

    RoleMenuController(IModelView, IBaseGridRelatedCollection<IRole, IMenuItem>)

    Declaration
    public RoleMenuController(IModelView view, IBaseGridRelatedCollection<IRole, IMenuItem> menuGrid)
    Parameters
    Type Name Description
    IModelView view
    IBaseGridRelatedCollection<IRole, IMenuItem> menuGrid

    Properties

    Context

    Declaration
    public IEntityUpdaterUI Context { get; }
    Property Value
    Type Description
    IEntityUpdaterUI

    ContextHelpURL

    An optional associated url of a help file for the view this controller works with

    Declaration
    public override string ContextHelpURL { get; }
    Property Value
    Type Description
    string
    Overrides
    ModelViewController.ContextHelpURL

    Menu

    Declaration
    public IEnumerable<IMenuItem> Menu { get; }
    Property Value
    Type Description
    IEnumerable<IMenuItem>

    Role

    Declaration
    public IRole Role { get; }
    Property Value
    Type Description
    IRole

    RoleID

    Declaration
    public Guid RoleID { get; }
    Property Value
    Type Description
    Guid

    RoleMenuView

    Declaration
    public IRoleMenu RoleMenuView { get; }
    Property Value
    Type Description
    IRoleMenu

    SelectedItemForSubViews

    Returns the item this view holds that can be passed to sub views

    This controller can change the item is passes to sub views (such as when this represents the selected item in a grid) by calling UpdateSubViews(IModelView, bool)

    Declaration
    public override object SelectedItemForSubViews { get; }
    Property Value
    Type Description
    object
    Overrides
    ModelViewController.SelectedItemForSubViews

    UseGridDisplay

    Declaration
    public bool UseGridDisplay { get; }
    Property Value
    Type Description
    bool

    ViewSelector

    Declaration
    public IGridSelector ViewSelector { get; }
    Property Value
    Type Description
    IGridSelector

    Methods

    Clear()

    Clears the associated View back to an initial blank state

    Declaration
    public override Task Clear()
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.Clear()

    ClearUI()

    Declaration
    public Task ClearUI()
    Returns
    Type Description
    Task

    CloseController()

    Called when a view is being closed, and before the controller is disposed.

    Used to dispose of associated commands and clear the view

    Declaration
    public override Task CloseController()
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.CloseController()

    DisplayMenu(IEnumerable<IMenuItem>)

    Declaration
    public Task DisplayMenu(IEnumerable<IMenuItem> menu)
    Parameters
    Type Name Description
    IEnumerable<IMenuItem> menu
    Returns
    Type Description
    Task

    DisplayUI()

    Must be implemented by the inheriting class to perform the operation of displaying the CurrentDisplayedItem against the View

    Declaration
    public override Task DisplayUI()
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.DisplayUI()

    InitCommands(IList<ViewCommand>)

    Provides the inheriting class an opportunity to add custom commands to this controller

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

    The current set of commands for this controller

    Overrides
    ModelViewController.InitCommands(IList<ViewCommand>)

    SelectItem(IMenuItem)

    Declaration
    public void SelectItem(IMenuItem item)
    Parameters
    Type Name Description
    IMenuItem item

    TrackItem(INotifyPropertyChanged)

    Declaration
    public void TrackItem(INotifyPropertyChanged item)
    Parameters
    Type Name Description
    INotifyPropertyChanged item

    UpdateAllCommands()

    Enumerates all the commands for this controller and calls OnCanExecuteChanged()

    Used by the view to update the disabled/enabled state of all commands on the view when dependant data changes within the view itself

    Declaration
    public override void UpdateAllCommands()
    Overrides
    ModelViewController.UpdateAllCommands()

    Implements

    IModelViewController
    IRoleMenuItemController

    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.