コード例 #1
0
ファイル: SimulationSubSys.cs プロジェクト: xiaoyj/Space
 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;
 }
コード例 #2
0
ファイル: SimulationSubSys.cs プロジェクト: xiaoyj/Space
 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);
 }