public virtual void reloadVariables()
 {
     foreach (string str in BoqItemTable.VIEWABLE_FIELDS)
     {
         if (!this.currentField.Equals(str))
         {
             object @object = getFieldValue(this.boqTable, str);
             if (@object is Number)
             {
                 if (@object is decimal)
                 {
                     this.decimalVariableMap[variableFromField(str)] = (decimal)@object;
                 }
                 else
                 {
                     this.decimalVariableMap[variableFromField(str)] = new BigDecimalFixed(@object.ToString());
                 }
             }
             else if (@object is string)
             {
                 this.textVariableMap[variableFromField(str)] = (string)@object;
             }
             else if (@object is DateTime)
             {
                 this.dateVariableMap[variableFromField(str)] = (DateTime)@object;
             }
             else if (@object is bool?)
             {
                 this.booleanVariableMap[variableFromField(str)] = (bool?)@object;
             }
             else if (@object == null)
             {
                 this.textVariableMap[variableFromField(str)] = "";
             }
         }
     }
     this.localVariableMap = LocalVariablesDatabaseUtil.getLocalVariables(this.boqTable.Vars);
 }
 public virtual void reloadVariables()
 {
     foreach (string str in BoqItemTable.VIEWABLE_FIELDS)
     {
         object @object = getFieldValue(this.assemblyTable, str);
         if (@object == null && !this.lineItemFields.Contains(str))
         {
             BigDecimalFixed bigDecimalFixed = new BigDecimalFixed(0);
             DateTime        date            = DateTime.Now;
             bool?           @bool           = false;
             Type            clazz           = getReturnType(this.boqItemTable, str);
             if (clazz != null)
             {
                 if (clazz.Equals(typeof(decimal)))
                 {
                     this.decimalVariableMap[BoqItemFormulaEvaluator.variableFromField(str)] = bigDecimalFixed;
                 }
                 else if (clazz.Equals(typeof(string)))
                 {
                     this.textVariableMap[BoqItemFormulaEvaluator.variableFromField(str)] = "";
                 }
                 else if (clazz.Equals(typeof(DateTime)))
                 {
                     this.dateVariableMap[BoqItemFormulaEvaluator.variableFromField(str)] = date;
                 }
                 else if (clazz.Equals(typeof(Boolean)))
                 {
                     this.booleanVariableMap[BoqItemFormulaEvaluator.variableFromField(str)] = @bool.Value;
                 }
             }
         }
         else if (@object is Number)
         {
             if (@object is decimal)
             {
                 this.decimalVariableMap[variableFromField(str)] = (decimal)@object;
             }
             else
             {
                 this.decimalVariableMap[variableFromField(str)] = new BigDecimalFixed(@object.ToString());
             }
         }
         else if (@object is string)
         {
             this.textVariableMap[variableFromField(str)] = (string)@object;
         }
         else if (@object is DateTime)
         {
             this.dateVariableMap[variableFromField(str)] = (DateTime)@object;
         }
         else if (@object is bool?)
         {
             this.booleanVariableMap[variableFromField(str)] = (bool?)@object;
         }
         else if (@object == null)
         {
             this.textVariableMap[variableFromField(str)] = "";
         }
     }
     this.localVariableMap = LocalVariablesDatabaseUtil.getLocalVariables(this.assemblyTable.Vars);
 }
 private void loadLocalVariables(string paramString)
 {
     this.localVariablesMap.Clear();
     this.localVariablesMap = LocalVariablesDatabaseUtil.getLocalVariables(paramString);
 }