示例#1
0
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/BEPB;component/MainPage.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.Actually = (Image) base.FindName("Actually");
         this.Quality = (Image) base.FindName("Quality");
         this.Forecast = (Image) base.FindName("Forecast");
         this.Support = (Image) base.FindName("Support");
         this.Mobile = (Image) base.FindName("Mobile");
         this.busyIndicator = (BusyIndicator) base.FindName("busyIndicator");
         this.map = (CMap) base.FindName("map");
         this.epbMapTileLayer = (MapTileLayer) base.FindName("epbMapTileLayer");
         this.MapMask = (MapLayer) base.FindName("MapMask");
         this.Districts = (MapLayer) base.FindName("Districts");
         this.CityCenterBorder2 = (MapPolygon) base.FindName("CityCenterBorder2");
         this.HuaiRou = (MapPolygon) base.FindName("HuaiRou");
         this.MiYun = (MapPolygon) base.FindName("MiYun");
         this.YanQing = (MapPolygon) base.FindName("YanQing");
         this.ChangPing = (MapPolygon) base.FindName("ChangPing");
         this.PingGu = (MapPolygon) base.FindName("PingGu");
         this.ShunYi = (MapPolygon) base.FindName("ShunYi");
         this.MenTouGou = (MapPolygon) base.FindName("MenTouGou");
         this.HaiDian = (MapPolygon) base.FindName("HaiDian");
         this.ChaoYang = (MapPolygon) base.FindName("ChaoYang");
         this.TongZhou = (MapPolygon) base.FindName("TongZhou");
         this.ShiJingShan = (MapPolygon) base.FindName("ShiJingShan");
         this.DongCheng = (MapPolygon) base.FindName("DongCheng");
         this.XiCheng = (MapPolygon) base.FindName("XiCheng");
         this.FangShan = (MapPolygon) base.FindName("FangShan");
         this.FengTai = (MapPolygon) base.FindName("FengTai");
         this.DaXing = (MapPolygon) base.FindName("DaXing");
         this.DistrictsName = (MapLayer) base.FindName("DistrictsName");
         this.东城区Name = (Pushpin) base.FindName("东城区Name");
         this.西城区Name = (Pushpin) base.FindName("西城区Name");
         this.朝阳区Name = (Pushpin) base.FindName("朝阳区Name");
         this.丰台区Name = (Pushpin) base.FindName("丰台区Name");
         this.石景山区Name = (Pushpin) base.FindName("石景山区Name");
         this.海淀区Name = (Pushpin) base.FindName("海淀区Name");
         this.门头沟区Name = (Pushpin) base.FindName("门头沟区Name");
         this.房山区Name = (Pushpin) base.FindName("房山区Name");
         this.通州区Name = (Pushpin) base.FindName("通州区Name");
         this.顺义区Name = (Pushpin) base.FindName("顺义区Name");
         this.昌平区Name = (Pushpin) base.FindName("昌平区Name");
         this.大兴区Name = (Pushpin) base.FindName("大兴区Name");
         this.怀柔区Name = (Pushpin) base.FindName("怀柔区Name");
         this.平谷区Name = (Pushpin) base.FindName("平谷区Name");
         this.密云县Name = (Pushpin) base.FindName("密云县Name");
         this.延庆县Name = (Pushpin) base.FindName("延庆县Name");
         this.Five = (MapLayer) base.FindName("Five");
         this.NorthEastBorder = (MapPolygon) base.FindName("NorthEastBorder");
         this.NorthWestBorder = (MapPolygon) base.FindName("NorthWestBorder");
         this.SouthWestBorder = (MapPolygon) base.FindName("SouthWestBorder");
         this.CityCenterBorder = (MapPolygon) base.FindName("CityCenterBorder");
         this.SouthEastBorder = (MapPolygon) base.FindName("SouthEastBorder");
         this.NorthEast = (MapPolygon) base.FindName("NorthEast");
         this.NorthWest = (MapPolygon) base.FindName("NorthWest");
         this.SouthWest = (MapPolygon) base.FindName("SouthWest");
         this.CityCenter = (MapPolygon) base.FindName("CityCenter");
         this.SouthEast = (MapPolygon) base.FindName("SouthEast");
         this.NorthEastText = (Pushpin) base.FindName("NorthEastText");
         this.NorthWestText = (Pushpin) base.FindName("NorthWestText");
         this.CityCenterText = (Pushpin) base.FindName("CityCenterText");
         this.SouthEastText = (Pushpin) base.FindName("SouthEastText");
         this.SouthWestText = (Pushpin) base.FindName("SouthWestText");
         this.MapStations = (MapLayer) base.FindName("MapStations");
         this.NavigationCtrl = (BEPB.NavigationCtrl) base.FindName("NavigationCtrl");
         this.btn_yx = (ToggleButton) base.FindName("btn_yx");
         this.btn_dx = (ToggleButton) base.FindName("btn_dx");
         this.btn_sl = (ToggleButton) base.FindName("btn_sl");
         this.btnAlertMessage = (Button) base.FindName("btnAlertMessage");
         this.wrwtl = (Image) base.FindName("wrwtl");
         this.wrwtlGrid = (Grid) base.FindName("wrwtlGrid");
         this.wrwtlTitle = (TextBlock) base.FindName("wrwtlTitle");
         this.wrwtlRect1 = (Rectangle) base.FindName("wrwtlRect1");
         this.wrwtlRect2 = (Rectangle) base.FindName("wrwtlRect2");
         this.wrwtlRect3 = (Rectangle) base.FindName("wrwtlRect3");
         this.wrwtlRect4 = (Rectangle) base.FindName("wrwtlRect4");
         this.wrwtlRect5 = (Rectangle) base.FindName("wrwtlRect5");
         this.wrwtlRect6 = (Rectangle) base.FindName("wrwtlRect6");
         this.wrwtlData = (TextBlock) base.FindName("wrwtlData");
         this.p_bottom_aqi = (Image) base.FindName("p_bottom_aqi");
         this.p_bottom_aqiGrid = (StackPanel) base.FindName("p_bottom_aqiGrid");
         this.aqiEllipse1 = (Ellipse) base.FindName("aqiEllipse1");
         this.aqiEllipse2 = (Ellipse) base.FindName("aqiEllipse2");
         this.aqiEllipse3 = (Ellipse) base.FindName("aqiEllipse3");
         this.aqiEllipse4 = (Ellipse) base.FindName("aqiEllipse4");
         this.aqiEllipse5 = (Ellipse) base.FindName("aqiEllipse5");
         this.aqiEllipse6 = (Ellipse) base.FindName("aqiEllipse6");
         this.p_aqi_detail = (Image) base.FindName("p_aqi_detail");
         this.dgAQIDetailText = (DataGrid) base.FindName("dgAQIDetailText");
         this.RenderImagesListBox = (ListBox) base.FindName("RenderImagesListBox");
         this.LeftFrame = (Grid) base.FindName("LeftFrame");
         this.Expand = (Storyboard) base.FindName("Expand");
         this.LeftFrameExpandAnimation = (DoubleAnimation) base.FindName("LeftFrameExpandAnimation");
         this.LeftFrameNewExpand = (Storyboard) base.FindName("LeftFrameNewExpand");
         this.ForecastExpandAnimation = (DoubleAnimation) base.FindName("ForecastExpandAnimation");
         this.ActuallyExpandAnimation = (DoubleAnimation) base.FindName("ActuallyExpandAnimation");
         this.QualityExpandAnimation = (DoubleAnimation) base.FindName("QualityExpandAnimation");
         this.ActuallyFrame_Old = (Grid) base.FindName("ActuallyFrame_Old");
         this.Tab = (TabControl) base.FindName("Tab");
         this.AQITabItem = (TabItem) base.FindName("AQITabItem");
         this.AQITabItemGrid = (Grid) base.FindName("AQITabItemGrid");
         this.dgAQI_Old = (DataGrid) base.FindName("dgAQI_Old");
         this.WRWTabItem = (TabItem) base.FindName("WRWTabItem");
         this.WRWTabItemGrid = (Grid) base.FindName("WRWTabItemGrid");
         this.LeftFrameTopRectangle_Old = (Rectangle) base.FindName("LeftFrameTopRectangle_Old");
         this.dgWRW_Old = (DataGrid) base.FindName("dgWRW_Old");
         this.lbl_DateTime_Old = (Run) base.FindName("lbl_DateTime_Old");
         this.wrwButtonsBorder_Old = (Border) base.FindName("wrwButtonsBorder_Old");
         this.wrwButtons_Old = (Canvas) base.FindName("wrwButtons_Old");
         this.PM25Storyboard_Old = (Storyboard) base.FindName("PM25Storyboard_Old");
         this.PM10Storyboard_Old = (Storyboard) base.FindName("PM10Storyboard_Old");
         this.SO2Storyboard_Old = (Storyboard) base.FindName("SO2Storyboard_Old");
         this.NO2Storyboard_Old = (Storyboard) base.FindName("NO2Storyboard_Old");
         this.O31Storyboard_Old = (Storyboard) base.FindName("O31Storyboard_Old");
         this.COStoryboard_Old = (Storyboard) base.FindName("COStoryboard_Old");
         this.wrw_pm25_Old = (ToggleButton) base.FindName("wrw_pm25_Old");
         this.wrw_pm10_Old = (ToggleButton) base.FindName("wrw_pm10_Old");
         this.wrw_so2_Old = (ToggleButton) base.FindName("wrw_so2_Old");
         this.wrw_no2_Old = (ToggleButton) base.FindName("wrw_no2_Old");
         this.wrw_o31_Old = (ToggleButton) base.FindName("wrw_o31_Old");
         this.wrw_co_Old = (ToggleButton) base.FindName("wrw_co_Old");
         this.ActuallyFrame = (Border) base.FindName("ActuallyFrame");
         this.TabDivActually = (Grid) base.FindName("TabDivActually");
         this.ActuallyLeftTabItem = (ColumnDefinition) base.FindName("ActuallyLeftTabItem");
         this.ActuallyRightTabItem = (ColumnDefinition) base.FindName("ActuallyRightTabItem");
         this.ActuallyPanelHeader = (Grid) base.FindName("ActuallyPanelHeader");
         this.btnActuallyExpand = (PushedImageButton) base.FindName("btnActuallyExpand");
         this.lbl_DateTime_WRW = (Run) base.FindName("lbl_DateTime_WRW");
         this.LeftFrameWrwCollapsedBottomRectangle = (Rectangle) base.FindName("LeftFrameWrwCollapsedBottomRectangle");
         this.ActuallyGrid = (Grid) base.FindName("ActuallyGrid");
         this.LeftFrameTopRectangle = (Rectangle) base.FindName("LeftFrameTopRectangle");
         this.dgWRW = (DataGrid) base.FindName("dgWRW");
         this.wrwButtonsBorder = (Border) base.FindName("wrwButtonsBorder");
         this.wrwButtons = (Canvas) base.FindName("wrwButtons");
         this.PM25Storyboard = (Storyboard) base.FindName("PM25Storyboard");
         this.PM10Storyboard = (Storyboard) base.FindName("PM10Storyboard");
         this.SO2Storyboard = (Storyboard) base.FindName("SO2Storyboard");
         this.NO2Storyboard = (Storyboard) base.FindName("NO2Storyboard");
         this.O31Storyboard = (Storyboard) base.FindName("O31Storyboard");
         this.COStoryboard = (Storyboard) base.FindName("COStoryboard");
         this.wrw_pm25 = (ToggleButton) base.FindName("wrw_pm25");
         this.wrw_so2 = (ToggleButton) base.FindName("wrw_so2");
         this.wrw_no2 = (ToggleButton) base.FindName("wrw_no2");
         this.wrw_o31 = (ToggleButton) base.FindName("wrw_o31");
         this.wrw_co = (ToggleButton) base.FindName("wrw_co");
         this.wrw_pm10 = (ToggleButton) base.FindName("wrw_pm10");
         this.AirQualityFrame = (Border) base.FindName("AirQualityFrame");
         this.TabDivQuality = (Grid) base.FindName("TabDivQuality");
         this.QualityHeader = (Grid) base.FindName("QualityHeader");
         this.QualityLeftTabItem = (ColumnDefinition) base.FindName("QualityLeftTabItem");
         this.QualityRightTabItem = (ColumnDefinition) base.FindName("QualityRightTabItem");
         this.QualityPanelHeader = (Grid) base.FindName("QualityPanelHeader");
         this.btnQualityExpand = (PushedImageButton) base.FindName("btnQualityExpand");
         this.QualityGrid = (Grid) base.FindName("QualityGrid");
         this.lbl_DateTime_AQI = (Run) base.FindName("lbl_DateTime_AQI");
         this.dgAQIGrid = (Grid) base.FindName("dgAQIGrid");
         this.dgAQI = (DataGrid) base.FindName("dgAQI");
         this.DayForecastPanel = (Border) base.FindName("DayForecastPanel");
         this.TabDiv = (Grid) base.FindName("TabDiv");
         this.yb_jl4_2 = (Grid) base.FindName("yb_jl4_2");
         this.ForecaseLeftTabItem = (ColumnDefinition) base.FindName("ForecaseLeftTabItem");
         this.ForecaseRightTabItem = (ColumnDefinition) base.FindName("ForecaseRightTabItem");
         this.ForecastPanelHeader = (Grid) base.FindName("ForecastPanelHeader");
         this.btnForecastExpand = (PushedImageButton) base.FindName("btnForecastExpand");
         this.ForecastGridBorder = (Border) base.FindName("ForecastGridBorder");
         this.forecastGrid = (DataGrid) base.FindName("forecastGrid");
         this.forecastMsg = (Grid) base.FindName("forecastMsg");
         this.ExpandButtonGrid = (Grid) base.FindName("ExpandButtonGrid");
         this.Line1 = (Rectangle) base.FindName("Line1");
         this.Line2 = (Rectangle) base.FindName("Line2");
         this.Line3 = (Rectangle) base.FindName("Line3");
         this.Line4 = (Rectangle) base.FindName("Line4");
         this.btnExpand = (ToggleButton) base.FindName("btnExpand");
         this.btnExpandTooTip = (TextBlock) base.FindName("btnExpandTooTip");
         this.FloatWRWPopup = (FloatPopup) base.FindName("FloatWRWPopup");
         this.WRWPopupBorder = (Border) base.FindName("WRWPopupBorder");
         this.WRWPopupBackground = (Grid) base.FindName("WRWPopupBackground");
         this.wrwqp_8 = (Grid) base.FindName("wrwqp_8");
         this.wrwqp_9 = (Grid) base.FindName("wrwqp_9");
         this.wrwqp_11 = (Grid) base.FindName("wrwqp_11");
         this.wrwqp_12 = (Grid) base.FindName("wrwqp_12");
         this.WRWChartPanel = (Grid) base.FindName("WRWChartPanel");
         this.WRWExpandAnimation = (DoubleAnimation) base.FindName("WRWExpandAnimation");
         this.WRWChart = (Chart) base.FindName("WRWChart");
         this.WRWChartTitle = (TextBlock) base.FindName("WRWChartTitle");
         this.XAxis = (DateTimeAxis) base.FindName("XAxis");
         this.YAxis = (LinearAxis) base.FindName("YAxis");
         this.WRWChartText = (TextBlock) base.FindName("WRWChartText");
         this.wrwqp_16 = (Grid) base.FindName("wrwqp_16");
         this.btnWRWExpand = (ToggleButton) base.FindName("btnWRWExpand");
         this.FloatAQIPopup = (FloatPopup) base.FindName("FloatAQIPopup");
         this.AQIPopupBorder = (Border) base.FindName("AQIPopupBorder");
         this.AQIPopupBackground = (Grid) base.FindName("AQIPopupBackground");
         this.aqi_26 = (Grid) base.FindName("aqi_26");
         this.aqi_27 = (Grid) base.FindName("aqi_27");
         this.aqi_28 = (Grid) base.FindName("aqi_28");
         this.aqi_29 = (Grid) base.FindName("aqi_29");
         this.aqi_30 = (Grid) base.FindName("aqi_30");
         this.AQIPanel = (Grid) base.FindName("AQIPanel");
         this.AQIExpandAnimation = (DoubleAnimation) base.FindName("AQIExpandAnimation");
         this.AQIDataGrid = (DataGrid) base.FindName("AQIDataGrid");
         this.AQIPopupBottom = (Grid) base.FindName("AQIPopupBottom");
         this.btnAQIExpand = (ToggleButton) base.FindName("btnAQIExpand");
         this.FloatForecastPopup = (FloatPopup) base.FindName("FloatForecastPopup");
         this.ForecastBorder = (Border) base.FindName("ForecastBorder");
         this.yb_2 = (Grid) base.FindName("yb_2");
         this.ForecastPopupHeader = (Grid) base.FindName("ForecastPopupHeader");
         this.ForecastNight = (Grid) base.FindName("ForecastNight");
         this.ForecastNightStationName = (Grid) base.FindName("ForecastNightStationName");
         this.yb_30 = (Grid) base.FindName("yb_30");
         this.yb_39 = (Grid) base.FindName("yb_39");
         this.yb_40 = (Grid) base.FindName("yb_40");
         this.ForecastNightConent = (Grid) base.FindName("ForecastNightConent");
         this.ForecastDay = (Grid) base.FindName("ForecastDay");
         this.ForecastDayStationName = (Grid) base.FindName("ForecastDayStationName");
         this.yb_61 = (Grid) base.FindName("yb_61");
         this.yb_62 = (Grid) base.FindName("yb_62");
         this.yb_65 = (Grid) base.FindName("yb_65");
         this.yb_66 = (Grid) base.FindName("yb_66");
         this.AlertWnd = (Marquee) base.FindName("AlertWnd");
         this.MapRange = (TextBox) base.FindName("MapRange");
         this.txtbWebCounts = (TextBlock) base.FindName("txtbWebCounts");
     }
 }
示例#2
0
        private void SetPopupOffset(Point point, string District, double PopupWidth, double PopupHeight, ref FloatPopup floatPopup)
        {
            Dictionary<string, Point> dictionary = new Dictionary<string, Point>();
            switch (District)
            {
                case "西北部":
                    this.PopupHOriginOffset = 80.0;
                    this.PopupVOriginOffset = -40.0;
                    floatPopup.ArrowPlacement = Dock.Right;
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    break;

                case "东北部":
                    this.PopupHOriginOffset = 180.0;
                    this.PopupVOriginOffset = 0.0;
                    floatPopup.ArrowPlacement = Dock.Left;
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    break;

                case "城六区":
                    this.PopupHOriginOffset = 230.0;
                    this.PopupVOriginOffset = 230.0;
                    floatPopup.ArrowPlacement = Dock.Left;
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    break;

                case "西南部":
                    this.PopupHOriginOffset = 160.0;
                    this.PopupVOriginOffset = 60.0;
                    floatPopup.ArrowPlacement = Dock.Right;
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    break;

                case "东南部":
                    this.PopupHOriginOffset = 170.0;
                    this.PopupVOriginOffset = 120.0;
                    floatPopup.ArrowPlacement = Dock.Left;
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    break;

                case "延庆县":
                    this.PopupHOriginOffset = 60.0;
                    this.PopupVOriginOffset = -60.0;
                    floatPopup.ArrowPlacement = Dock.Right;
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    break;

                case "昌平区":
                    this.PopupHOriginOffset = 150.0;
                    this.PopupVOriginOffset = 0.0;
                    floatPopup.ArrowPlacement = Dock.Right;
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    break;

                case "怀柔区":
                case "密云县":
                    this.PopupHOriginOffset = 200.0;
                    this.PopupVOriginOffset = 100.0;
                    floatPopup.ArrowPlacement = Dock.Left;
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    break;

                case "顺义区":
                    this.PopupHOriginOffset = 200.0;
                    this.PopupVOriginOffset = 100.0;
                    floatPopup.ArrowPlacement = Dock.Left;
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    break;

                case "平谷区":
                    this.PopupHOriginOffset = 200.0;
                    this.PopupVOriginOffset = 100.0;
                    floatPopup.ArrowPlacement = Dock.Left;
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    break;

                case "东城区":
                case "西城区":
                case "朝阳区":
                    this.PopupHOriginOffset = 200.0;
                    this.PopupVOriginOffset = 100.0;
                    floatPopup.ArrowPlacement = Dock.Left;
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    break;

                case "海淀区":
                    this.PopupHOriginOffset = 200.0;
                    this.PopupVOriginOffset = 100.0;
                    floatPopup.ArrowPlacement = Dock.Right;
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    break;

                case "石景山区":
                case "丰台区":
                    this.PopupHOriginOffset = 200.0;
                    this.PopupVOriginOffset = 100.0;
                    floatPopup.ArrowPlacement = Dock.Right;
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    break;

                case "门头沟区":
                case "房山区":
                    this.PopupHOriginOffset = 200.0;
                    this.PopupVOriginOffset = 100.0;
                    floatPopup.ArrowPlacement = Dock.Right;
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    break;

                case "通州区":
                case "大兴区":
                    this.PopupHOriginOffset = 200.0;
                    this.PopupVOriginOffset = 100.0;
                    floatPopup.ArrowPlacement = Dock.Left;
                    dictionary.Add("SouthEast1", this.map.LocationToViewportPoint(this.PopSouthEast1));
                    dictionary.Add("SouthEast2", this.map.LocationToViewportPoint(this.PopSouthEast2));
                    dictionary.Add("SouthWest", this.map.LocationToViewportPoint(this.PopSouthWest));
                    dictionary.Add("NorthWest2", this.map.LocationToViewportPoint(this.PopNorthWest2));
                    dictionary.Add("NorthEast1", this.map.LocationToViewportPoint(this.PopNorthEast1));
                    dictionary.Add("NorthWest1", this.map.LocationToViewportPoint(this.PopNorthWest1));
                    dictionary.Add("NorthEast2", this.map.LocationToViewportPoint(this.PopNorthEast2));
                    break;
            }
            double num = 0.0;
            double num2 = 0.0;
            if (this.DayForecastPanel.get_Visibility() == null)
            {
                num = this.DayForecastPanel.get_ActualWidth();
                num2 = this.DayForecastPanel.get_ActualHeight();
            }
            else if (this.ActuallyFrame.get_Visibility() == null)
            {
                num = this.ActuallyFrame.get_ActualWidth();
                num2 = this.ActuallyFrame.get_ActualHeight();
            }
            foreach (KeyValuePair<string, Point> pair in dictionary)
            {
                Point point2 = pair.Value;
                point2.set_X(point2.get_X() * this.mapScale);
                point2.set_Y(point2.get_Y() * this.mapScale);
                double num3 = point2.get_X();
                bool flag = false;
                switch (pair.Key)
                {
                    case "NorthWest1":
                    {
                        if (point2.get_Y() < (num2 + PopupHeight))
                        {
                            num3 = point2.get_X() - num;
                        }
                        double num4 = 1.0;
                        if (num2 == 0.0)
                        {
                            num4 = 0.6;
                        }
                        if ((num3 >= (PopupWidth * num4)) && (point2.get_Y() >= PopupHeight))
                        {
                            this.PopupHOriginOffset = point.get_X() - point2.get_X();
                            this.PopupVOriginOffset = point2.get_Y() - point.get_Y();
                            floatPopup.ArrowPlacement = Dock.Right;
                            flag = true;
                        }
                        break;
                    }
                    case "NorthWest2":
                    {
                        if (point2.get_Y() < (num2 + PopupHeight))
                        {
                            num3 = point2.get_X() - num;
                        }
                        double num5 = 1.0;
                        if (num2 == 0.0)
                        {
                            num5 = 0.9;
                        }
                        if ((num3 >= (PopupWidth * num5)) && (point2.get_Y() >= PopupHeight))
                        {
                            this.PopupHOriginOffset = point.get_X() - point2.get_X();
                            this.PopupVOriginOffset = point2.get_Y() - point.get_Y();
                            floatPopup.ArrowPlacement = Dock.Right;
                            flag = true;
                        }
                        break;
                    }
                    case "SouthWest":
                        if (((this.map.get_ActualHeight() - num2) - 10.0) < PopupHeight)
                        {
                            num3 = point2.get_X() - num;
                        }
                        if (num3 >= PopupWidth)
                        {
                            this.PopupHOriginOffset = point.get_X() - point2.get_X();
                            if (point2.get_Y() < num2)
                            {
                                this.PopupVOriginOffset = ((num2 + 10.0) + PopupHeight) - point.get_Y();
                            }
                            else
                            {
                                this.PopupVOriginOffset = (point2.get_Y() + PopupHeight) - point.get_Y();
                            }
                            floatPopup.ArrowPlacement = Dock.Right;
                            flag = true;
                        }
                        break;

                    case "NorthEast1":
                        if ((this.map.get_ActualWidth() - point2.get_X()) >= (PopupWidth * 0.9))
                        {
                            this.PopupHOriginOffset = point2.get_X() - point.get_X();
                            this.PopupVOriginOffset = point2.get_Y() - point.get_Y();
                            floatPopup.ArrowPlacement = Dock.Left;
                            flag = true;
                        }
                        break;

                    case "NorthEast2":
                        if (((this.map.get_ActualWidth() - point2.get_X()) >= (PopupWidth * 0.9)) && (point2.get_Y() > (PopupHeight * 0.7)))
                        {
                            this.PopupHOriginOffset = point2.get_X() - point.get_X();
                            this.PopupVOriginOffset = point2.get_Y() - point.get_Y();
                            floatPopup.ArrowPlacement = Dock.Left;
                            flag = true;
                        }
                        break;

                    case "SouthEast1":
                        if (((this.map.get_ActualWidth() - point2.get_X()) >= (PopupWidth * 0.9)) && ((this.map.get_ActualHeight() - point2.get_Y()) > (PopupHeight * 0.8)))
                        {
                            this.PopupHOriginOffset = point2.get_X() - point.get_X();
                            this.PopupVOriginOffset = (point2.get_Y() + PopupHeight) - point.get_Y();
                            floatPopup.ArrowPlacement = Dock.Left;
                            flag = true;
                        }
                        break;

                    case "SouthEast2":
                        if ((this.map.get_ActualWidth() - point2.get_X()) >= (PopupWidth * 0.9))
                        {
                            this.PopupHOriginOffset = point2.get_X() - point.get_X();
                            this.PopupVOriginOffset = (point2.get_Y() + PopupHeight) - point.get_Y();
                            floatPopup.ArrowPlacement = Dock.Left;
                            flag = true;
                        }
                        break;
                }
                if (flag)
                {
                    break;
                }
            }
            floatPopup.HOriginOffset = this.PopupHOriginOffset;
            floatPopup.VOriginOffset = this.PopupVOriginOffset;
        }