Ejemplo n.º 1
0
    /// <summary>
    /// Loads the suggested days from XML.
    /// </summary>
    /// <param name="reader">The reader.</param>
    void LoadSuggestedDaysFromXml(EwsServiceXmlReader reader)
    {
        reader.ReadStartElement(XmlNamespace.Messages, XmlElementNames.SuggestionDayResultArray);

        do
        {
            reader.Read();

            if (reader.IsStartElement(XmlNamespace.Types, XmlElementNames.SuggestionDayResult))
            {
                Suggestion daySuggestion = new Suggestion();

                daySuggestion.LoadFromXml(reader, reader.LocalName);

                this.daySuggestions.Add(daySuggestion);
            }
        }while (!reader.IsEndElement(XmlNamespace.Messages, XmlElementNames.SuggestionDayResultArray));
    }