/// <summary> /// Deserializes the passed XmlDocument and sets data directly into controls. /// </summary> /// <param name="xmlDocument">XmlDocument to be desrialized</param> private void DeserializeData(XmlDocument xmlDocument) { dataElement = SocialNetworkingHelper.DeserializePublishingElement(xmlDocument); if (dataElement.SocialNetworkType != SocialNetworkType.Twitter) { throw new Exception("Unrecognized XML format - wrong name element"); } }
/// <summary> /// Deserializes the passed XmlDocument and sets data directly into controls. /// </summary> /// <param name="xmlDocument">XmlDocument to be desrialized</param> private void DeserializeData(XmlDocument xmlDocument) { dataElement = SocialNetworkingHelper.DeserializePublishingElement(xmlDocument); if (dataElement.SocialNetworkType != SocialNetworkType.Twitter) { throw new Exception("Unrecognized XML format - wrong name element"); } }