コード例 #1
0
ファイル: HmCategory.cs プロジェクト: mono-soc-2012/Tasque
        public static HmCategory[] GetCategories(XmlNodeList list)
        {
            uint i = 0;
            XmlSerializer serializer = new XmlSerializer(typeof(Group));
            HmCategory[] categories = new HmCategory[list.Count];

            foreach (XmlNode node in list )
                categories[i++] = new HmCategory ((Group)serializer.Deserialize(new StringReader(node.OuterXml)));

            return categories;
        }
コード例 #2
0
        public void RefreshCategories()
        {
            Gtk.TreeIter iter;
            HmCategory[] categories = HmCategory.GetCategories(this.hm.DownloadGroups());

            foreach (HmCategory category in categories)
            {
                category.Dump();
                iter = categoryListStore.Append();
                categoryListStore.SetValue(iter, 0, category);
            }

            Logger.Debug("Fetching Categories");
        }
コード例 #3
0
ファイル: HmCategory.cs プロジェクト: nolith/tasque
        public static HmCategory[] GetCategories(XmlNodeList list)
        {
            uint          i          = 0;
            XmlSerializer serializer = new XmlSerializer(typeof(Group));

            HmCategory[] categories = new HmCategory[list.Count];

            foreach (XmlNode node in list)
            {
                categories[i++] = new HmCategory((Group)serializer.Deserialize(new StringReader(node.OuterXml)));
            }

            return(categories);
        }