Example #1
0
        public void Initialize(Core.IEntityHandler entityHandler)
        {
            _entityHandler = entityHandler;

            var treeNodeStore = new EntityTreeNodeStore();

            entityHandler.RegisterEntityWatcher(new EntityWatcher <Entity.SolarSystem>(this.TreeView, treeNodeStore, SolarSystemNode));
            entityHandler.RegisterEntityWatcher(new EntityWatcher <Entity.SpaceStation>(this.TreeView, treeNodeStore));
            entityHandler.RegisterEntityWatcher(new EntityWatcher <Entity.CommodityGroup>(this.TreeView, treeNodeStore, CommodityGroupNode));
            entityHandler.RegisterEntityWatcher(new EntityWatcher <Entity.CommodityType>(this.TreeView, treeNodeStore));
            //entityHandler.RegisterEntityWatcher(new EntityWatcher<Entity.MarketEntry>(this.TreeView, treeNodeStore));
        }
Example #2
0
 public EntityWatcher(TreeView treeView, EntityTreeNodeStore treeNodeStore, TreeNode optionalFixedParentNode = null)
 {
     _treeView                = treeView;
     _treeNodeStore           = treeNodeStore;
     _optionalFixedParentNode = optionalFixedParentNode;
 }