public void InitModule() { commandList = new List <BaseCommand>(); netList = new List <BaseNetHandler>(); modelList = new Dictionary <string, BaseModel>(); ControllerMgr.AddModule(s_instance as IController); OnInit(); OnInited(); }
public ExportPrediction(ControllerMgr predictionGroupsManager, IApplicationContext appContext, TreeNode rootnode, string basicStudyName) { this.m_ControllerMgr = predictionGroupsManager; this.m_appContext = appContext; this.m_IProjectManager = ServiceHelper.Lookup<IProjectManager>(appContext); this.m_geoProvider = ServiceHelper.Lookup<IGeoProvider>(appContext); this.m_Tranceiverlist = ServiceHelper.Lookup<IPrediction>(appContext).TranceiverList; this.m_StatusBarService = ServiceHelper.Lookup<IStatusBarService>(appContext); this.m_rootnode = rootnode; this.m_BasicStudyName = basicStudyName; }
public CDFCompareForm(ControllerMgr controllerMgr, IApplicationContext subSysInterface, List<NetWorkType> predictionTypeList, Dictionary<NetWorkType, List<StudyTemplate>> studyTemplateConfigDic) { this.InitializeComponent(); this.cboNetType.SelectedIndexChanged += new EventHandler(this.cboNetTrpe_SelectedIndexChanged); this.m_ControllerMgr = controllerMgr; this.m_SubSysInterface = subSysInterface; this.m_PredictionTypeList = predictionTypeList; this.m_StudyTemplateConfigDic = studyTemplateConfigDic; this.m_EventViewService = ServiceHelper.Lookup<IEventViewService>(subSysInterface); this.Init(); this.cboNetType.SelectedIndex = 0; this.m_PredictionStatisticsManager = new PredictionStatisticsManager(this.m_SubSysInterface); this.DisplayGraphCDFForAllGroup(); this.cboStudy.SelectedIndexChanged += new EventHandler(this.cboStudy_SelectedIndexChanged); this.dgvGroup.CellContentClick += new DataGridViewCellEventHandler(this.dgvGroup_CellContentClick); this.cboStudy.SelectedIndex = 0; }
public PredictionReportForm(ControllerMgr pgm, IApplicationContext appContext, TreeNode rootNode) { this.m_AppContext = appContext; this.m_IGeoProvider = ServiceHelper.Lookup<IGeoProvider>(this.m_AppContext); this.m_IProjectManager = ServiceHelper.Lookup<IProjectManager>(this.m_AppContext); this.m_IAnalyDispEvent = ServiceHelper.Lookup<IAnalyDispEvent>(this.m_AppContext); this.m_EventViewService = ServiceHelper.Lookup<IEventViewService>(this.m_AppContext); this.m_ControllerMgr = pgm; this.psm = new PredictionStatisticsManager(this.m_AppContext); this.m_rootNode = rootNode; this.InitializeComponent(); this.GetClutter(); this.ExportDataDisplay(); this.dgvExpoertData.AllowUserToAddRows = false; this.dgvExpoertData.AllowUserToDeleteRows = false; this.dgvExpoertData.ServiceCustom.ServiceCustomDic[DgvServiceEnum.RecordProperties] = false; this.dgvExpoertData.ServiceCustom.ServiceCustomDic[DgvServiceEnum.Copy] = false; this.dgvExpoertData.ServiceCustom.ServiceCustomDic[DgvServiceEnum.Paste] = false; }
public PictureAndStatInfoExportForm(IApplicationContext otherSubSysInterface, ControllerMgr controllerMgr) { this.isSingleGroup = false; this.components = null; this.InitializeComponent(); this.m_AppContext = otherSubSysInterface; this.m_PrintexportEditor = new StatInfoExport(otherSubSysInterface, controllerMgr); this.Init(otherSubSysInterface, controllerMgr); IExportManager manager = ServiceHelper.Lookup<IExportManager>(this.m_AppContext); if (manager != null) { List<GroupExportParam> allCalculatedGroupParam = manager.GetAllCalculatedGroupParam(); this.InitSimulationData(allCalculatedGroupParam); } int num = this.lstContent.Items.Add("Prediction"); this.lstContent.Items.Add("Simulation"); this.lstContent.SelectedIndex = num; this.BandingSimulationDataGradViewEvent(); }
public void Close() { OnClose(); ControllerMgr.RemoveModule(s_instance as IController); for (int i = 0; i < commandList.Count; i++) { commandList[i].Clear(); } for (int i = 0; i < netList.Count; i++) { netList[i].Clear(); } foreach (var model in modelList) { model.Value.Clear(); } commandList = null; modelList = null; netList = null; }
void OnDestroy() { allController.Clear(); _inst = null; }
public BinDataExportByPolygonForm(IApplicationContext appContext, ControllerMgr predictionGroupsManager, TreeNode rootnode) { this.InitializeComponent(); this.m_RootNode = rootnode; this.Init(appContext, predictionGroupsManager); }
private void Init(IApplicationContext appContext, ControllerMgr controllerMgr) { this.m_appContext = appContext; this.m_ControllerMgr = controllerMgr; this.m_IGeoProvider = ServiceHelper.Lookup<IGeoProvider>(appContext); this.m_Tranceiverlist = ServiceHelper.Lookup<IPrediction>(appContext).TranceiverList; this.m_StatusBarService = ServiceHelper.Lookup<IStatusBarService>(appContext); this.m_polygonRegionlist = this.m_IGeoProvider.PolygonRegionList; this.m_IProjectManager = ServiceHelper.Lookup<IProjectManager>(appContext); this.lsbPolygonList.Items.Add("Full Map"); this.lsbPolygonList.SelectedIndex = 0; foreach (GeoPolygonRegion region in this.m_polygonRegionlist) { this.lsbPolygonList.Items.Add(region.Name); } }
public PictureAndStatInfoExportForm(string groupname, IApplicationContext otherSubSysInterface, ControllerMgr predictionGroupsManager) { this.isSingleGroup = false; this.components = null; this.InitializeComponent(); this.m_PrintexportEditor = new StatInfoExport(otherSubSysInterface, predictionGroupsManager); this.Init(groupname, otherSubSysInterface, predictionGroupsManager); int num = this.lstContent.Items.Add("Prediction"); this.lstContent.SelectedIndex = num; }
private void InitData(IApplicationContext otherSubSysInterface, ControllerMgr controllerMgr) { this.m_AppContext = otherSubSysInterface; this.m_ControllerMgr = controllerMgr; this.m_PredictionGrouplist = new List<IPredictionGroup>(); }
private void Init(string groupname, IApplicationContext otherSubSysInterface, ControllerMgr controllerMgr) { this.isSingleGroup = true; this.InitData(otherSubSysInterface, controllerMgr); this.m_PredictionGrouplist.Add(controllerMgr.IPredictionModel.GetGroupByName(groupname)); this.groupBox1.Controls.Add(this.gbxPlogyn); this.lstContent.Height = 210; this.gbxContent.Height = 230; this.BindData(); this.lstPlogyn.SelectedIndexChanged += new EventHandler(this.lstPlogyn_SelectedIndexChanged); }
private void Init(IApplicationContext otherSubSysInterface, ControllerMgr controllerMgr) { this.InitData(otherSubSysInterface, controllerMgr); this.m_PredictionGrouplist.AddRange(controllerMgr.IPredictionModel.GroupList); this.BindData(); this.lstPlogyn.SelectedIndexChanged += new EventHandler(this.lstPlogyn_SelectedIndexChanged); }