Exemplo n.º 1
0
 /*  protected Field()
 {
 }  */
 protected Field(string Name, Type fieldValueType, object fieldValue, string Formula = "", List<string> ChildNames = null)
 {
     m_name = Name;
     m_fieldValueType = fieldValueType;
     m_fieldValue = fieldValue;
     m_formula = Formula;
     m_childNames = ChildNames;
     ControlEngine.FieldList.Add(this);
     FieldValueChangedEventArgs e = new FieldValueChangedEventArgs(this.name, m_fieldValue, Type.GetType("System." + m_fieldValueType.ToString()));
 }
Exemplo n.º 2
0
 public static void EngineFieldValueChanged(object changedField, FieldValueChangedEventArgs e)
 {
     Console.WriteLine("The value for {0} was recalculated.",((Field)changedField).name);
 }
Exemplo n.º 3
0
 protected virtual void OnFieldValueChanged(object sender, FieldValueChangedEventArgs e)
 {
     if (FieldValueChanged != null)
     {
         FieldValueChanged(this, e);
     }
 }