/// <summary> /// Retrieve all values of all variables. /// </summary> private List <KeyValuePair <string, object> > GetValues() { List <KeyValuePair <string, object> > Values = new List <KeyValuePair <string, object> >(); Values.Add(new KeyValuePair <string, object>("SimulationID", SimulationID)); Values.Add(new KeyValuePair <string, object>("Date", Today)); for (int i = 0; i < Variables.Variable.Length; i++) { object Value; Paddock.GetObject(Variables.Variable[i], out Value); if (Value == null) { Value = ""; } ConvertVariableToValues(Variables.Variable[i], Value.ToString(), Values); } return(Values); }