Inheritance
RoleMenuController
Assembly: LemonEdge.ClientEntities.dll
public class RoleMenuController : ModelViewController, IModelViewController, IRoleMenuItemController
Constructors
Declaration
public RoleMenuController(IModelView view)
Parameters
Declaration
public RoleMenuController(IModelView view, IBaseGridRelatedCollection<IRole, IMenuItem> menuGrid)
Parameters
Properties
Declaration
public IEntityUpdaterUI Context { get; }
Property Value
An optional associated url of a help file for the view this controller works with
Declaration
public override string ContextHelpURL { get; }
Property Value
Overrides
Declaration
public IEnumerable<IMenuItem> Menu { get; }
Property Value
Declaration
public IRole Role { get; }
Property Value
Declaration
public Guid RoleID { get; }
Property Value
Declaration
public IRoleMenu RoleMenuView { get; }
Property Value
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
Overrides
Declaration
public bool UseGridDisplay { get; }
Property Value
Declaration
public IGridSelector ViewSelector { get; }
Property Value
Methods
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
Declaration
Returns
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
Declaration
public Task DisplayMenu(IEnumerable<IMenuItem> menu)
Parameters
Returns
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
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
Declaration
public void SelectItem(IMenuItem item)
Parameters
Declaration
public void TrackItem(INotifyPropertyChanged item)
Parameters
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
Implements
Extension Methods