예제 #1
0
 private void Init()
 {
     this.m_ParentNode = new TreeNode(TrafficMapResource.TRAFFICMAP_PARENTNODE_NAME);
     this.m_ParentNode.Name = TrafficMapResource.TRAFFICMAP_PARENTNODE_TRAFFIC;
     this.m_ParentNode.SelectedImageKey = TrafficMapResource.TRAFFICMAP_FOLDER;
     this.m_ParentNode.ImageKey = TrafficMapResource.TRAFFICMAP_FOLDER;
     this.m_ParentNode.StateImageIndex = 1;
     this.m_ParentNode.ContextMenuStrip = this.contextMenuParent;
     this.m_TrafficMapFunction = ServiceHelper.Lookup<ITrafficMapFunction>(this.m_ServiceContext);
     this.modelService = this.m_ServiceContext.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_TrafficMapEvent.Add(TrafficMapType.Environment, new ShowTrafficMapFrm(this.ShowEnvirmentFrm));
     this.m_TrafficMapEvent.Add(TrafficMapType.Vector, new ShowTrafficMapFrm(this.ShowVector));
     this.m_TrafficMapEvent.Add(TrafficMapType.CellCoverage, new ShowTrafficMapFrm(this.ShowCellCoverage));
     this.m_TrafficPropertyEvent.Add(TrafficMapType.Environment, new ShowTrafficMapPropertyFrm(this.ShowEnvMapPropertiesFrm));
     this.m_TrafficPropertyEvent.Add(TrafficMapType.Vector, new ShowTrafficMapPropertyFrm(this.ShowVectorMapPropertiesFrm));
     this.m_TrafficPropertyEvent.Add(TrafficMapType.CellCoverage, new ShowTrafficMapPropertyFrm(this.Showcellfrm));
 }
예제 #2
0
 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;
 }
예제 #3
0
 private void InitParam(IApplicationContext context)
 {
     this.m_ServiceContext = context;
     this.m_TrafficMapService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_TrafficModelService = this.m_ServiceContext.Lookup(typeof(ITrafficService).FullName) as ITrafficService;
     this.m_TrafficMapAutomation = ServiceHelper.Lookup<ITrafficMapFunction>(this.m_ServiceContext);
     this.InitHandleMap();
 }