コード例 #1
0
 private void ShowPrevious()
 {
     SegmentedTabManager.SelectTab(PreviousTab);
     SegmentedTabManager.DeselectTab(UpcomingTab);
     CurrentLayout.IsVisible  = false;
     PreviousLayout.IsVisible = true;
 }
コード例 #2
0
 private void ShowRecruitsTab()
 {
     SegmentedTabManager.SelectTab(RecruitTab);
     SegmentedTabManager.DeselectTab(ComradesTab);
     SegmentedTabManager.DeselectTab(AlliesTab);
     _currentTabString = "Recruits";
     if (map.ZoomLevel != 4.1)
     {
         map.ZoomLevel = 4.1;
         map.Center    = new Position(54.936310, -4.621107);
     }
     _annotationRecruits = new ObservableCollection <Annotation>();
     foreach (var item in _mapListRecruits)
     {
         if (!string.IsNullOrEmpty(item.Longitude) || !string.IsNullOrEmpty(item.Latitude))
         {
             var point = new PointAnnotation()
             {
                 Coordinate = new Position(Double.Parse(item.Latitude), Double.Parse(item.Longitude)),
                 Title      = item.Fullname,
                 Color      = item.Color,
                 MapType    = item.Type
             };
             _annotationRecruits.Add(point);
         }
     }
     map.Annotations = _annotationRecruits;
 }
コード例 #3
0
 private void ShowAlliesTab()
 {
     SegmentedTabManager.DeselectTab(RecruitTab);
     SegmentedTabManager.DeselectTab(ComradesTab);
     SegmentedTabManager.SelectTab(AlliesTab);
     _currentTabString = "Allies";
     if (map.ZoomLevel != 4.1)
     {
         map.ZoomLevel = 4.1;
         map.Center    = new Position(54.936310, -4.621107);
     }
     map.Annotations = new ObservableCollection <Annotation>();
 }
コード例 #4
0
 private void ShowTopPerformers()
 {
     SegmentedTabManager.SelectTab(TopPerformersTab);
     SegmentedTabManager.DeselectTab(LocationTab);
     MostNewRecruitsListView.IsVisible = true;
 }