/// <summary> /// Private constructor, stops instantiation of more than one object /// </summary> /// <param name="url">Image Url</param> /// <param name="top">The distance from the top side of the Canvas</param> /// <param name="left">The distance from the Left side of the Canvas</param> private CBackButton(String url, double top, double left) { m_Url = url; m_Top = top; m_Left = left; mainPage = MainPage.getInstance(); m_parentCanvas = mainPage.canvas2; isVisible = true; initialise(); // Store this instance instance = this; }
private void map_TargetViewChanged(object sender, MapEventArgs e) { if (bZoomDisable == false) { if ((map != null)) { if (maplayer.Z != map.ZoomLevel) map.SetView(new Location(maplayer.Lat, maplayer.Long), maplayer.Z); } } if (map != null && bZoomEnable == false) { if (maplayer.bIsMousePressedMoldova || maplayer.bIsMousePressedBaragan || maplayer.bIsMousePressedBanat || maplayer.bIsMousePressedTransilvania) { bZoomDisable = true; // ------------------ // Unusable //Popup.IsOpen = true; //SelectRegionButton(); //---------------------- // Add Back Button backButton = CBackButton.getInstance(); // Verify Visibility if (backButton.isButtonVisible() == false) backButton.setVisibility(true); } if (maplayer.Z > 7.0) { bZoomDisable = false; bZoomEnable = true; } } }