private void ShowMostNewComradesTab() { var service = new ConquerorRankingService(); if (Global.GetTopComNum() == 1) { var resourceslist = service.GetTopComrades(); foreach (var item in resourceslist.Where(c => c.Index == 0)) { item.Index = resourceslist.IndexOf(item) + 1; } mostNewComradesL.ItemsSource = resourceslist; } CustomTabButtonManager.DeselectTab(MostResourcesTab); CustomTabButtonManager.SelectTab(MostNewComradesTab); CustomTabButtonManager.DeselectTab(MostNewRecruitTab); MostResourcesTab.Icon = "pound_sign_gray"; MostNewComradesTab.Icon = "army_5t"; MostNewRecruitTab.Icon = "guyt_black"; StopBusyIndicator(); MostResourcesListView.IsVisible = false; MostNewComradesListView.IsVisible = true; MostNewRecruitsListView.IsVisible = false; }
private void ShowMostNewRecruitsTab() { CustomTabButtonManager.DeselectTab(MostResourcesTab); CustomTabButtonManager.SelectTab(MostNewRecruitTab); CustomTabButtonManager.DeselectTab(MostNewComradesTab); MostResourcesTab.Icon = "pound_sign_gray"; MostNewComradesTab.Icon = "army_5t_black"; MostNewRecruitTab.Icon = "guyt"; MostResourcesListView.IsVisible = false; MostNewRecruitsListView.IsVisible = true; MostNewComradesListView.IsVisible = false; }
private void ShowOtherPartners() { CustomTabButtonManager.DeselectTab(BusinessGrowthExecutiveTab); CustomTabButtonManager.DeselectTab(UmbrellaMessagesTab); CustomTabButtonManager.SelectTab(OtherPartnersTab); BusinessGrowthExecutiveTab.Icon = "mission_white"; UmbrellaMessagesTab.Icon = "general_white"; OtherPartnersTab.Icon = "top_secret_green"; MessagesListView.IsVisible = false; MissionsTabPage.IsVisible = false; TopSecretTabPage.IsVisible = true; //MessagesListView.ItemsSource = _messagesViewModel.Messages.Where(x => x.Type == MessageType.OtherPartners); }