Ejemplo n.º 1
0
 private void AddModulesNodes(ModulesTreeInfo info, TreeStore store, TreeIter parent)
 {
     foreach(ModulesTreeInfo node in info.Items)
     {
         string desc = node.Description;
         desc = (desc == null)? "" : desc.Trim();
         TreeIter current;
         if(parent.Equals(TreeIter.Zero))
             current = store.AppendValues(null, node.Text, desc, node);
         else
             current = store.AppendValues(parent, null, node.Text, desc, node);
         AddModulesNodes(node, store, current);
     }
 }
Ejemplo n.º 2
0
        public void ShowModuleTab(ModulesTreeInfo info)
        {
            ListPage page = null;
            for(int i = 0; i < nbData.NPages; i++)
            {
                page = nbData.GetNthPage(i) as ListPage;
                if(page == null)
                    continue;
                if(page.Module == info)
                    break;
                page = null;
            }
            if(page == null)
                page = new ListPage(nbData, info);

            page.SetCurrent();
        }