Exemplo n.º 1
0
        private void UpdateData()
        {
            _treeView.Nodes.Clear();
            List <Entry> entries = DataManagerLocal.Inst.Data;

            if (_checkBoxHierarchy.Checked)
            {
                TreeViewCreator.PopulateTreeViewWithDataHierarchy(_treeView, entries, exactType, exactGuid);
            }
            else
            {
                TreeViewCreator.CreateHierarchyTreeView(_treeView);
            }
        }
Exemplo n.º 2
0
 private void MainFormLoad(object sender, EventArgs e)
 {
     _dataManagerAssembly = AppDomain.CurrentDomain.GetAssemblies().SingleOrDefault(assembly => assembly.GetName().Name == "University");
     if (_dataManagerAssembly != null)
     {
         List <Type> types = _dataManagerAssembly.GetTypes().Where(type => type.Name == "Entry").ToList();
         if (types.Count == 0)
         {
             return;
         }
         _hierarchy = new TypeNode(types[0]);
     }
     TreeCreator.Create(_hierarchy);
     _treeView.Nodes.Add(_hierarchy.Data.Name, _hierarchy.Data.Name);
     TreeViewCreator.PopulateTreeViewWithHierarchy(_treeView, _hierarchy);
 }