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()
Assembly: ClientCore.dll
public class ControlDisplayInfoFormulaResult : INotifyPropertyChanged
Constructors
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
Declaration
Field Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Declaration
Field Value
Type |
Description |
System.Byte[] |
|
Declaration
Field Value
Type |
Description |
System.Nullable<System.Char> |
|
Declaration
public DateTimeOffset? _dateValue
Field Value
Type |
Description |
System.Nullable<System.DateTimeOffset> |
|
Declaration
public decimal? _decimalValue
Field Value
Type |
Description |
System.Nullable<System.Decimal> |
|
Declaration
public double? _doubleValue
Field Value
Type |
Description |
System.Nullable<System.Double> |
|
Declaration
Field Value
Type |
Description |
System.Nullable<System.Guid> |
|
Declaration
Field Value
Type |
Description |
System.Nullable<System.Int32> |
|
Declaration
Field Value
Type |
Description |
System.Nullable<System.Int64> |
|
Declaration
Field Value
Type |
Description |
System.Object |
|
Declaration
public short? _shortValue
Field Value
Type |
Description |
System.Nullable<System.Int16> |
|
Properties
Declaration
public bool? BoolValue { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Declaration
public byte[] ByteValue { get; set; }
Property Value
Type |
Description |
System.Byte[] |
|
Declaration
public char? CharValue { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Char> |
|
Declaration
public DateTimeOffset? DateValue { get; set; }
Property Value
Type |
Description |
System.Nullable<System.DateTimeOffset> |
|
Declaration
public decimal? DecimalValue { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Decimal> |
|
Declaration
public double? DoubleValue { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Double> |
|
The formula this class evaluates and sets the property with the result for
Declaration
public string Formula { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public Guid? GuidValue { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
Declaration
public int? IntValue { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Declaration
public long? LongValue { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int64> |
|
Declaration
public object ObjectValue { get; set; }
Property Value
Type |
Description |
System.Object |
|
Declaration
public short? ShortValue { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int16> |
|
Declaration
public string StringValue { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
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
|
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
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods