Beispiel #1
0
        private void manageStaticSubCategoriesButton_Click(object sender, EventArgs e)
        {

            Form3 f3 = new Form3();
            RssLink parentCat = GetTreeViewSelectedNode() as RssLink;
            if (parentCat != null && staticList.Contains(parentCat))
            {
                List<RssLink> subcats = new List<RssLink>();
                if (parentCat.SubCategories != null)
                    foreach (RssLink tmp in parentCat.SubCategories)
                        subcats.Add(tmp);
                parentCat.SubCategories = new List<Category>(f3.Execute(subcats).ToArray());
                GetSubCategoriesButton_Click(sender, e);
            }
            else
                MessageBox.Show("no valid (static) category selected");
        }
Beispiel #2
0
 private void manageStaticCategoriesButton_Click(object sender, EventArgs e)
 {
     Form3 f3 = new Form3();
     staticList = f3.Execute(staticList);
     GetCategoriesButton_Click(sender, e);
 }