Class ParamSingleViewerController<T>
The base single parameter viewer controller for all instances of a IParamSingleViewer<T>
Inheritance
Inherited Members
Namespace: LemonEdge.Client.Core.Support
Assembly: ClientCore.dll
Syntax
public abstract class ParamSingleViewerController<T> : ParamViewerController<T>, IParamViewerController, IPopupWindowController, IController where T : SerializedParam
Type Parameters
Name | Description |
---|---|
T | The type of parameter this IParamSingleViewer<T> works with |
Constructors
ParamSingleViewerController(IParamSingleViewer<T>, T)
Creates a new instance of the controller for the provided single popup window and associated parameter
Declaration
public ParamSingleViewerController(IParamSingleViewer<T> window, T param)
Parameters
Type | Name | Description |
---|---|---|
IParamSingleViewer<T> | window | The single popup parameter window instance this controller is for |
T | param | The initial parameters to use when displaying the single popup window |
Properties
Host
The host for this popup window
Declaration
protected IModelLayoutCommon Host { get; }
Property Value
Type | Description |
---|---|
IModelLayoutCommon |
SingleWindow
The parameter popup window this controller works against
Declaration
protected IParamSingleViewer<T> SingleWindow { get; }
Property Value
Type | Description |
---|---|
IParamSingleViewer<T> |
Methods
AlterControlInfo(ControlDisplayInfo)
Can be overridden in the derived class to alter the control definition with specific, or dynamic, information such as filters for lookup controls
Declaration
protected virtual void AlterControlInfo(ControlDisplayInfo info)
Parameters
Type | Name | Description |
---|---|---|
ControlDisplayInfo | info | THe control that should be altered |
ControlNames()
Can be overridden in a derived class to indicate all the controls to be created in this single parameter popup form
Declaration
protected virtual IEnumerable<ControlDisplayInfoLight> ControlNames()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ControlDisplayInfoLight> | All the controls to be created in this single parameter popup form |
Controls()
Can be overridden in a derived class to indicate all the controls to be created in this single parameter popup form
Declaration
protected virtual IEnumerable<ControlDisplayInfo> Controls()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ControlDisplayInfo> | All the controls to be created in this single parameter popup form |
Display()
Overridse the default display method to enumerate all the Controls() in this popup parameter form and display their values
Declaration
public override Task Display()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |
Overrides
OnItemChanged(Object, PropertyChangedEventArgs)
Fires if the type T
implements INotifyPropertyChanged, for every change in the property
Declaration
protected virtual void OnItemChanged(object sender, PropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender of the event |
System.ComponentModel.PropertyChangedEventArgs | e | THe event argumnets holding the property changed |