protected override void ControlsToData() { if (_bus == null) _bus = new PCI(); base.ControlsToData(); ((PCI) _bus).deviceID = edtDeviceId.GetValue<string>(); ((PCI) _bus).vendorID = edtVendorId.GetValue<string>(); }
public static bool LoadFromFile(string fileName, out PCI obj) { Exception exception; return LoadFromFile(fileName, out obj, out exception); }
public static bool Deserialize(string input, out PCI obj) { Exception exception; return Deserialize(input, out obj, out exception); }
/// <summary> /// Deserializes xml markup from file into an PCI object /// </summary> /// <param name="fileName">string xml file to load and deserialize</param> /// <param name="obj">Output PCI 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 PCI obj, out Exception exception) { exception = null; obj = default(PCI); try { obj = LoadFromFile(fileName); return true; } catch (Exception ex) { exception = ex; return false; } }
/// <summary> /// Deserializes workflow markup into an PCI object /// </summary> /// <param name="input">string workflow markup to deserialize</param> /// <param name="obj">Output PCI 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 PCI obj, out Exception exception) { exception = null; obj = default(PCI); try { obj = Deserialize(input); return true; } catch (Exception ex) { exception = ex; return false; } }