Search Results for

    Show / Hide Table of Contents

    Class ParamSingleViewerController<T>

    The base single parameter viewer controller for all instances of a IParamSingleViewer<T>

    Inheritance
    System.Object
    PopupWindowController
    PopupWindowController<T>
    ParamViewerController<T>
    ParamSingleViewerController<T>
    AnyCollectionCommandParamController
    AnySingleCommandParamController
    ExportData
    ReportParamController<T>
    ButtonSerializedParamController
    DataSourceSearchParamController
    GridViewControllerCustomViewParamsController
    SingleViewControllerViewParamsController
    TriggerBaseParams<T>
    Implements
    IParamViewerController
    IPopupWindowController
    IController
    Inherited Members
    ParamViewerController<T>.OriginalParam
    ParamViewerController<T>.IParamViewerController.OriginalParam
    ParamViewerController<T>.SetParam(T)
    PopupWindowController<T>.InitCommands(IList<ViewCommand>)
    PopupWindowController<T>.OwningWindow
    PopupWindowController<T>.Commands
    PopupWindowController<T>.OnOk(Object)
    PopupWindowController<T>.OnOk(T)
    PopupWindowController<T>.Validate(T)
    PopupWindowController<T>.OnCancel()
    PopupWindowController<T>.GetResult
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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
    LemonEdge.Client.Core.Support.ParamViewerController<T>.Display()

    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

    Implements

    IParamViewerController
    IPopupWindowController
    IController

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.