public CellMapPropertiesFrm(IApplicationContext context, List<NetWorkType> netTypeList) { this.m_AllTerminal = new Dictionary<string, Terminal>(); this.m_AllMobility = new Dictionary<string, Mobility>(); this.m_CellNamesInLowercase = new List<string>(); this.m_ServiceContext = null; this.m_TrafficService = null; this.modelService = null; this.m_CellDataGridViewDict = new Dictionary<int, Dictionary<int, List<object>>>(); this.inNode = null; this.m_ServiceList = null; this.m_TerminalList = null; this.m_OldMapName = string.Empty; this.components = null; this.m_ServiceContext = context; this.m_TrafficService = context.Lookup(typeof(ITrafficService).FullName) as ITrafficService; this.modelService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService; this.m_TrafficMapAutomation = context.Lookup(typeof(ITrafficMapFunction).FullName) as ITrafficMapFunction; this.m_netWorkTypeList = netTypeList; this.m_TrafficForMap = this.m_ServiceContext.Lookup(typeof(ITrafficForMap).FullName) as ITrafficForMap; this.InitializeComponent(); this.InitCellMap(); this.m_OldMapName = this.m_Map.Name; this.m_IsNodeAdded = false; this.Text = TrafficMapResource.TRAFFICMAP_CELL_PROPERTY; this.LoadCellMapProperty(); this.btnApply.Enabled = false; }
public void InitStage1(IApplicationContext appContext) { if (!this.m_NetWorkTypeList.Contains(NetWorkType.CDMA)) { TrafficServiceImpl impl = new TrafficServiceImpl(appContext, this.m_NetWorkType); this.m_Model = impl.TrafficColModel; this.m_TrafficService = appContext.Lookup(typeof(ITrafficService).FullName) as ITrafficService; this.m_TrafficInterface = new TrafficForNetEntity(appContext, this.m_Model); this.m_TrafficForMapInterface = new TrafficForMap(appContext, this.m_Model); this.m_TrafficForApp = new TrafficForApplication(appContext, this.m_Model); CalMcsEfficiency service = new CalMcsEfficiency(appContext, this.m_Model); appContext.RegisterService(this.m_TrafficInterface); appContext.RegisterService(this.m_TrafficForMapInterface); appContext.RegisterService(this.m_TrafficForApp); appContext.RegisterService(service); this.m_appContext = appContext; this.m_Antennas = ServiceHelper.Lookup<INetAntenna<AntennaEntity>>(appContext); this.m_SerializeHelper = new SerializedHelper(this.m_Model, this.m_TrafficSerializedData, this.m_NetWorkTypeList); this.InitManagement(); this.InitExportExcelDic(); } }