public void AutoLoadData(ISubSystemData systemData) { LTESimulationData data = systemData as LTESimulationData; this.m_SimGroupManager.SimGroups.Clear(); if (data != null) { foreach (SimGroup group in data.SimulationGroup) { group.SetOtherSubSysInterface(this.m_SubSysInterface); this.m_SimGroupManager.SimGroups.Add(group); } this.m_SimulationView = new SimulationContextMenuView(this.m_NodeOperations[0].SubSysNode, this.m_SimGroupManager.SimGroups, this.m_SubSysInterface, this.m_UserInfo, this.m_SimGroupManager, this.m_AppContext); this.m_SimGroupManager.LoadSnapShotStatColDisplay(); this.SetNodeCheckState(this.m_NodeOperations[0].SubSysNode, data.NodeCheckState); } }
public void InitStage2() { this.InitInterface(); this.m_SimulationView = new SimulationContextMenuView(this.m_NodeOperations[0].SubSysNode, this.m_SubSysInterface, this.m_UserInfo, this.m_SimGroupManager, this.m_AppContext); ServiceHelper.Lookup<IMainFormService>(this.m_AppContext).Begin_TreeNodeDragEvent += new TreeNodeDragEventHandler(this.TreeNodeDragEvent); }