public ColorSetUpFrom(IGeoProvider provider, ITrafficMap map, ITrafficEvent trafficEvent, bool visible) { this.InitializeComponent(); this.m_GeoProvider = provider; this.m_TrafficEvent = trafficEvent; this.m_TrafficMap = map; this.m_BindingPolygons = TrafficMapView.GetSelectedPolygon(map); this.m_NodeVisible = visible; }
public TrafficMapView(IApplicationContext context, List<NetWorkType> netWorkTypeList) { this.m_ServiceContext = context; this.m_NetWorkTypeList = netWorkTypeList; this.m_GeoProvider = context.Lookup(typeof(IDataProvider).FullName) as IDataProvider; this.m_TrafficMapService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService; this.m_GeoDataProvider = new GeoDataObserver(this.m_GeoProvider).GeoProvider; this.m_TrafficEvent = ServiceHelper.Lookup<ITrafficEvent>(context); this.InitializeComponent(); this.Init(); }
public TrafficMapModelServiceImpl(IApplicationContext context) { this.m_ServiceContext = context; this.m_TrafficMapVectorData = new Huawei.UNet.Traffic.Map.Model.TrafficMapVectorData(); this.m_EnvMapMgr = new Huawei.UNet.Traffic.Map.Model.EnvTrafficMapMgr(context, this, this.m_TrafficMapVectorData); this.m_VecMapMgr = new Huawei.UNet.Traffic.Map.Model.VectorTrafficMapMgr(context, this, this.m_TrafficMapVectorData); this.m_CellMapMgr = new Huawei.UNet.Traffic.Map.Model.CellTrafficMapMgr(context, this); this.m_TrafficMapMrg = new Huawei.UNet.Traffic.Map.Model.TrafficMapMgr(context); IDataProvider subject = context.Lookup(typeof(IDataProvider).FullName) as IDataProvider; this.m_GeoDataHandler = new GeoDataObserver(subject); this.m_TrafficEvent = context.Lookup(typeof(ITrafficEvent).FullName) as ITrafficEvent; IDataProvider provider2 = context.Lookup(typeof(IDataProvider).FullName) as IDataProvider; }