Example #1
0
 void IFlickrParsable.Load(XmlReader reader)
 {
     while (reader.NodeType != XmlNodeType.EndElement)
     {
         switch (reader.LocalName)
         {
             case "set":
                 var set = new ContextSet();
                 set.PhotosetId = reader.GetAttribute("id");
                 set.Title = reader.GetAttribute("title");
                 Sets.Add(set);
                 reader.Read();
                 break;
             case "pool":
                 var group = new ContextGroup();
                 group.GroupId = reader.GetAttribute("id");
                 group.Title = reader.GetAttribute("title");
                 Groups.Add(group);
                 reader.Read();
                 break;
         }
     }
 }
Example #2
0
        void IFlickrParsable.Load(XmlReader reader)
        {
            while (reader.NodeType != XmlNodeType.EndElement)
            {
                switch (reader.LocalName)
                {
                case "set":
                    var set = new ContextSet();
                    set.PhotosetId = reader.GetAttribute("id");
                    set.Title      = reader.GetAttribute("title");
                    Sets.Add(set);
                    reader.Read();
                    break;

                case "pool":
                    var group = new ContextGroup();
                    group.GroupId = reader.GetAttribute("id");
                    group.Title   = reader.GetAttribute("title");
                    Groups.Add(group);
                    reader.Read();
                    break;
                }
            }
        }