private void ControlsToData() { if (_VXIBackplaneVoltages == null) _VXIBackplaneVoltages = new VXIBackplaneVoltages(); _VXIBackplaneVoltages.minus_12 = (double) edtMinus12.Value; _VXIBackplaneVoltages.minus_2 = (double) edtMinus2.Value; _VXIBackplaneVoltages.minus_24 = (double) edtMinus24.Value; _VXIBackplaneVoltages.minus_52 = (double) edtMinus52.Value; _VXIBackplaneVoltages.plus_12 = (double) edtPlus12.Value; _VXIBackplaneVoltages.plus_24 = (double) edtPlus24.Value; _VXIBackplaneVoltages.plus_5 = (double) edtPlus5.Value; _VXIBackplaneVoltages.plus_5_standby = (double) edtPlus5Standby.Value; }
public static bool LoadFromFile(string fileName, out VXIBackplaneVoltages obj) { Exception exception; return LoadFromFile(fileName, out obj, out exception); }
/// <summary> /// Deserializes xml markup from file into an VXIBackplaneVoltages object /// </summary> /// <param name="fileName">string xml file to load and deserialize</param> /// <param name="obj">Output VXIBackplaneVoltages object</param> /// <param name="exception">output Exception value if deserialize failed</param> /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns> public static bool LoadFromFile(string fileName, out VXIBackplaneVoltages obj, out Exception exception) { exception = null; obj = default(VXIBackplaneVoltages); try { obj = LoadFromFile(fileName); return true; } catch (Exception ex) { exception = ex; return false; } }
public static bool Deserialize(string input, out VXIBackplaneVoltages obj) { Exception exception; return Deserialize(input, out obj, out exception); }
/// <summary> /// Deserializes workflow markup into an VXIBackplaneVoltages object /// </summary> /// <param name="input">string workflow markup to deserialize</param> /// <param name="obj">Output VXIBackplaneVoltages object</param> /// <param name="exception">output Exception value if deserialize failed</param> /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns> public static bool Deserialize(string input, out VXIBackplaneVoltages obj, out Exception exception) { exception = null; obj = default(VXIBackplaneVoltages); try { obj = Deserialize(input); return true; } catch (Exception ex) { exception = ex; return false; } }