Example #1
0
        private void LoadPage(GeoCoordinate center, double zoomLevel)
        {
            if (Model != null)
            {
                map.SetView(center, zoomLevel);
                AddMyLocation();

                foreach (var rack in Model.Racks)
                {
                    AddRackToMap(rack);
                }
            }
            else
            {
                Model = new MainPageModel();
                map.SetView(new GeoCoordinate(59.91786, 10.739735), 13);
            }

            Model.Racks.CollectionChanged += Racks_CollectionChanged;

            var service = new ClearChannelService.ClearChannelSoapClient();
            service.getRacksCompleted += service_getRacksCompleted;
            service.getRacksAsync();
        }
Example #2
0
        private void ApplicationBarIconButton_Click_1(object sender, EventArgs e)
        {
            Summary.Visibility = Visibility.Collapsed;

            var service = new ClearChannelService.ClearChannelSoapClient();
            service.getRacksCompleted += service_getRacksCompleted;
            service.getRacksAsync();
        }