Esempio n. 1
0
 public void Dispose()
 {
     this.m_AppContext = null;
     this.m_SimTreeNodeOperator = null;
     this.m_MenuItemOperation = null;
     this.m_GroupCollection = null;
     this.m_FactoryBuilder = null;
     this.m_CaculateMgr = null;
     this.m_DisplayDataMgr = null;
     this.m_ContextMenuView = null;
     this.m_LegendMgr = null;
 }
 public SimulationTreeNodeOperation(SimulationContextMenuView simulationContextMenuView, ISimGroupCollection groupCollection,NetWorkType net)
 {
     this.m_ContextMenuView = simulationContextMenuView;
     this.m_GroupCollection = groupCollection;
     this.m_IconList = new ImageList();
     this.m_IconList.Images.Add("SimulationRoot", Huawei.UNet.Common.GlobalResource.GlobalResource.Folder);
     this.m_IconList.Images.Add("SimulationGroupUnlock", Huawei.UNet.Common.GlobalResource.GlobalResource.Unlock);
     this.m_IconList.Images.Add("SimulationGroupNetwork", Huawei.UNet.Common.GlobalResource.GlobalResource._21);
     this.m_IconList.Images.Add("SimulationSnapshot", Huawei.UNet.Common.GlobalResource.GlobalResource._11);
     this.m_IconList.Images.Add("SimulationStyle", Huawei.UNet.Common.GlobalResource.GlobalResource._30);
     //this.m_SimulationSubSysTreeNode = new TreeNode();
     //this.m_SimulationSubSysTreeNode.Text = SimulationResource.SIMULATION;
     //this.m_SimulationSubSysTreeNode.Name = SimulationResource.SIMULATION;
     //this.m_SimulationSubSysTreeNode.ImageKey = "SimulationRoot";
     //this.m_SimulationSubSysTreeNode.SelectedImageKey = "SimulationRoot";
     //this.m_SimulationSubSysTreeNode.StateImageIndex = 1;
     //this.m_SimulationSubSysTreeNode.ContextMenuStrip = this.m_ContextMenuView.SimulationContextMenuStrip;
 }
Esempio n. 3
0
 private void Init()
 {
     this.m_GroupCollection = new SimGroupCollection();
     string cfgFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Simulation\SimulationConfig.xml");
     this.m_FactoryBuilder = new ConfigurationLoader(cfgFile);
     this.m_LegendMgr = new SimulationLegendMgr(this.m_AppContext);
     this.m_CaculateMgr = new CaculateMgr(this.m_FactoryBuilder, this.m_GroupCollection, this.m_AppContext);
     this.m_ContextMenuView = new SimulationContextMenuView(this.m_GroupCollection, this.m_FactoryBuilder, this.m_CaculateMgr, this.m_LegendMgr);
     this.m_GroupCollection.GroupDeleted += new EventHandler<GroupEventArgs>(this.m_LegendMgr.OnGroupDeleted);
     this.m_SimTreeNodeOperator = new SimulationTreeNodeOperation(this.m_ContextMenuView, this.m_GroupCollection);
     this.m_GroupCollection.GroupAdded += new EventHandler<GroupEventArgs>(this.m_SimTreeNodeOperator.OnGroupAdded);
     this.m_GroupCollection.GroupDeleted += new EventHandler<GroupEventArgs>(this.m_SimTreeNodeOperator.OnGroupDeleted);
     this.m_GroupCollection.GroupNameChanged += new EventHandler<GroupEventArgs>(this.m_SimTreeNodeOperator.OnGroupNameChanged);
     this.m_GroupCollection.GroupStateChanged += new EventHandler<GroupEventArgs>(this.m_SimTreeNodeOperator.OnGroupStateChanged);
     this.m_GroupCollection.GroupStylesChanged += new EventHandler<GroupEventArgs>(this.m_SimTreeNodeOperator.OnGroupStylesChanged);
     this.m_DisplayDataMgr = new SimDisplayDataMgr(this.m_AppContext);
     this.m_GroupCollection.GroupAdded += new EventHandler<GroupEventArgs>(this.m_DisplayDataMgr.OnGroupAdded);
     this.m_GroupCollection.GroupDeleted += new EventHandler<GroupEventArgs>(this.m_DisplayDataMgr.OnGroupDeleted);
     this.m_GroupCollection.GroupStateChanged += new EventHandler<GroupEventArgs>(this.m_DisplayDataMgr.OnGroupStateChanged);
     this.m_GroupCollection.GroupStylesChanged += new EventHandler<GroupEventArgs>(this.m_DisplayDataMgr.OnGroupStylesChanged);
     this.m_GroupCollection.GroupsVisibleStateChanged += new EventHandler<GroupsVisibleChangeEvnetArgs>(this.m_DisplayDataMgr.OnGroupsVisibleStateChanged);
     this.m_MenuItemOperation = new SimulationMenuItemOperation(this.m_AppContext);
     this.m_GroupCollection.GroupStateChanged += new EventHandler<GroupEventArgs>(this.m_MenuItemOperation.OnGroupStateChanged);
 }