Beispiel #1
0
        public override void OnLoading()
        {
            base.OnLoading();
            DConsole.WriteLine("Client onloading");
            _topInfoComponent = new TopInfoComponent(this)
            {
                Header            = Translator.Translate("client"),
                LeftButtonControl = new Image {
                    Source = ResourceManager.GetImage("topheading_back")
                },
                RightButtonControl = new Image {
                    Source = ResourceManager.GetImage("topheading_edit")
                },
                ArrowVisible = false
            };
            _topInfoComponent.ActivateBackButton();

            var latitude  = Converter.ToDouble(_client["Latitude"]);
            var longitude = Converter.ToDouble(_client["Longitude"]);

            if (!latitude.Equals(0.0) && !longitude.Equals(0.0))
            {
                _map = (WebMapGoogle)GetControl("MapClient", true);
                _map.AddMarker((string)_client["Description"], latitude,
                               longitude, "red");
            }

            _clientDesc = GetConstLenghtString(_client["Description"].ToString());
            DConsole.WriteLine("Client end");
        }
 private void Add_WebMap_OnClick(object sender, EventArgs e)
 {
     _webMapGoogle          = new WebMapGoogle();
     _webMapGoogle.Visible  = true;
     _webMapGoogle.CssClass = "WebMapGoogle";
     _webMapGoogle.Id       = "ID OF WEB MAP GOOGLE";
     _webMapGoogle.AddMarker("marker", GPS.CurrentLocation.Latitude, GPS.CurrentLocation.Longitude, "red");
     vl.AddChild(_webMapGoogle);
     vl.Refresh();
 }
Beispiel #3
0
 public override void OnLoading()
 {
     _map = (WebMapGoogle)GetControl("Map", true);
     _topInfoComponent = new TopInfoComponent(this)
     {
         Header            = Translator.Translate("map"),
         LeftButtonControl = new Image()
         {
             Source = ResourceManager.GetImage("topheading_back")
         },
         ArrowVisible = false
     };
     _topInfoComponent.ActivateBackButton();
     DConsole.WriteLine("MapScreen");
 }