Class DisplayModalController<T>
public class DisplayModalController<T> : ModalControllerBase<DisplayModel<T>, DisplayView, T>, IModalController<T> where T : IEntity<T>
Type Parameters
T
- Inheritance
-
ModalControllerBase<DisplayModel<T>, T>DisplayModalController<T>
- Implements
- Inherited Members
Constructors
DisplayModalController(IServices, bool, T)
public DisplayModalController(IServices services, bool isEditable, T clonee)
Parameters
Fields
Editable
protected readonly bool Editable
Field Value
Entity
protected readonly T Entity
Field Value
- T
Methods
CreateContentSubcontroller()
protected virtual ContentControllerBase<T> CreateContentSubcontroller()
Returns
CreateUninitialisedModel(ISurface)
protected override DisplayModel<T> CreateUninitialisedModel(ISurface s)
Parameters
sISurface
Returns
- DisplayModel<T>
InitialiseModel(DisplayModel<T>)
protected override void InitialiseModel(DisplayModel<T> vm)
Parameters
vmDisplayModel<T>
OnCompleted()
This handler is invoked after the modal completes which could be due to it completing with a result or due to it being cancelled. This method should only perform cleanup of event handlers and similar.
protected override void OnCompleted()
Remarks
See OnConfirmAsync() and OnConfirmAsync() for an appropriate place to put business logic that should run immediately before confirming this modal.
OnConfirmAsync()
protected virtual Task OnConfirmAsync()
Returns
OnModelCreated()
protected override void OnModelCreated()