/// <summary> /// Read XML node of a record event /// </summary> /// <param name="xEvent">XML node to read</param> /// <returns>Node reading error: True = No error / False = Error</returns> public bool Read_RecordEventInfoXmlNode(XmlNode xEvent) { try { XmlNode xProp = null; xProp = xEvent.SelectSingleNode("Name"); Name = xProp.InnerText; xProp = xEvent.SelectSingleNode("Date"); StartingDate = DateTime.Parse(xProp.InnerText); xProp = xEvent.SelectSingleNode("Comment"); Comment = xProp.InnerText; UserInfos.Read_UserInfoCollectionXmlNode(xEvent.SelectSingleNode("EventUserInfo")); } catch { return(false); } return(true); }
/// <summary> /// Read XML node of a record session /// </summary> /// <param name="xSession">XML node to read</param> /// <returns>Node reading error: True = No error / False = Error</returns> public bool Read_RecordSessionInfoXmlNode(XmlNode xSession) { try { XmlNode xProp = null; xProp = xSession.SelectSingleNode("Name"); Name = xProp.InnerText; xProp = xSession.SelectSingleNode("Date"); SessionDate = DateTime.Parse(xProp.InnerText); xProp = xSession.SelectSingleNode("Comment"); Comment = xProp.InnerText; UserInfos.Read_UserInfoCollectionXmlNode(xSession.SelectSingleNode("SessionUserInfo")); } catch { return(false); } return(true); }