Search Results for

    Show / Hide Table of Contents

    Class ControlDisplayInfoFormulaResult

    The class passed to controls that display a ControlDisplayInfo set to hold the result of a formula value

    Inheritance
    System.Object
    ControlDisplayInfoFormulaResult
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    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.Views.Core
    Assembly: ClientCore.dll
    Syntax
    public class ControlDisplayInfoFormulaResult : INotifyPropertyChanged

    Constructors

    ControlDisplayInfoFormulaResult(Type, String)

    Creates a new ControlDisplayInfoFormulaResult for the specified formula that returns a value of the specified propertyType

    Declaration
    public ControlDisplayInfoFormulaResult(Type propertyType, string formula)
    Parameters
    Type Name Description
    System.Type propertyType

    The type of result returned from the specified formula

    System.String formula

    The formula to evaluate and return a result for

    Fields

    _boolValue

    Declaration
    public bool? _boolValue
    Field Value
    Type Description
    System.Nullable<System.Boolean>

    _byteValue

    Declaration
    public byte[] _byteValue
    Field Value
    Type Description
    System.Byte[]

    _charValue

    Declaration
    public char? _charValue
    Field Value
    Type Description
    System.Nullable<System.Char>

    _dateValue

    Declaration
    public DateTimeOffset? _dateValue
    Field Value
    Type Description
    System.Nullable<System.DateTimeOffset>

    _decimalValue

    Declaration
    public decimal? _decimalValue
    Field Value
    Type Description
    System.Nullable<System.Decimal>

    _doubleValue

    Declaration
    public double? _doubleValue
    Field Value
    Type Description
    System.Nullable<System.Double>

    _guidValue

    Declaration
    public Guid? _guidValue
    Field Value
    Type Description
    System.Nullable<System.Guid>

    _intValue

    Declaration
    public int? _intValue
    Field Value
    Type Description
    System.Nullable<System.Int32>

    _longValue

    Declaration
    public long? _longValue
    Field Value
    Type Description
    System.Nullable<System.Int64>

    _objValue

    Declaration
    public object _objValue
    Field Value
    Type Description
    System.Object

    _shortValue

    Declaration
    public short? _shortValue
    Field Value
    Type Description
    System.Nullable<System.Int16>

    Properties

    BoolValue

    Declaration
    public bool? BoolValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    ByteValue

    Declaration
    public byte[] ByteValue { get; set; }
    Property Value
    Type Description
    System.Byte[]

    CharValue

    Declaration
    public char? CharValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Char>

    DateValue

    Declaration
    public DateTimeOffset? DateValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTimeOffset>

    DecimalValue

    Declaration
    public decimal? DecimalValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Decimal>

    DoubleValue

    Declaration
    public double? DoubleValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    Formula

    The formula this class evaluates and sets the property with the result for

    Declaration
    public string Formula { get; }
    Property Value
    Type Description
    System.String

    GuidValue

    Declaration
    public Guid? GuidValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Guid>

    IntValue

    Declaration
    public int? IntValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    LongValue

    Declaration
    public long? LongValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int64>

    ObjectValue

    Declaration
    public object ObjectValue { get; set; }
    Property Value
    Type Description
    System.Object

    ShortValue

    Declaration
    public short? ShortValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int16>

    StringValue

    Declaration
    public string StringValue { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    EvaluateFormula(IEntityUpdater, IBaseEntity)

    Evaluates this controls formula and sets the value for the property with the correct result

    Declaration
    public Task EvaluateFormula(IEntityUpdater updater, IBaseEntity contextItem)
    Parameters
    Type Name Description
    IEntityUpdater updater

    A context updater

    IBaseEntity contextItem

    The item this formula is to be evalauted against

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    GetResultBinding(Type)

    Returns the property on this class that will hold the result of the formula given the specified result type from the formula

    Declaration
    public static string GetResultBinding(Type formulaResultPropertyType)
    Parameters
    Type Name Description
    System.Type formulaResultPropertyType

    The type of value that is returned from evaluating the formula

    Returns
    Type Description
    System.String

    The name of the property on this class that will hold the result of the formula given the specified result type from the formula

    Events

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged

    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.