private void ShowAddCardPage() { TabButtonManager.SelectTab(AddCardTab); TabButtonManager.DeselectTab(ExistingCardTab); addCardTab.IsVisible = true; existingCardTab.IsVisible = false; }
private void ShowCustomersBacks() { TabButtonManager.DeselectTab(LeadsTab); TabButtonManager.SelectTab(CustomersTab); TabButtonManager.DeselectTab(EnquiriesTab); LeadsTab.Icon = "leads"; CustomersTab.Icon = "customers_red"; EnquiriesTab.Icon = "enquiries"; }
private void ShowPreviousReferrals() { TabButtonManager.DeselectTab(ReferAndEarnTab); TabButtonManager.SelectTab(PreviousReferralsTab); ReferAndEarnTab.Icon = "refer_and_earn"; PreviousReferralsTab.Icon = "previous_referrals_red"; ReferAndEarnLayout.IsVisible = false; ReferralsListView.IsVisible = true; }
private void ShowLeads() { TabButtonManager.SelectTab(LeadsTab); TabButtonManager.DeselectTab(CustomersTab); TabButtonManager.DeselectTab(EnquiriesTab); LeadsTab.Icon = "leads_red"; CustomersTab.Icon = "customers"; EnquiriesTab.Icon = "enquiries"; LeadsListView.IsVisible = true; }
private void ShowYourCharity() { TabButtonManager.DeselectTab(MicroFinanceTab); TabButtonManager.DeselectTab(CleanWaterTab); TabButtonManager.SelectTab(YourCharityTab); MicroFinanceTab.Icon = "micro_finance_new"; CleanWaterTab.Icon = "clean_water_new"; YourCharityTab.Icon = "your_charity_green_new"; CharityListView.IsVisible = false; YourCharityPage.IsVisible = true; }
private void ShowEventsThisWeek() { TabButtonManager.SelectTab(WeekTab); TabButtonManager.DeselectTab(MonthTab); TabButtonManager.DeselectTab(YearTab); WeekTab.Icon = "week_new_green_bg"; MonthTab.Icon = "month_new_white_bg"; YearTab.Icon = "year_new_white_bg"; EventsListViewWeek.IsVisible = true; EventsListViewYear.IsVisible = false; EventsListViewMonth.IsVisible = false; }
private void ShowEventsThisYear() { var service = new CalendarEventsService(); if (Global.GetCalendarYearNum() == 1) { var resourcesList = service.GetCalendarApiYear(); Global.SetCalendarListYear(resourcesList); EventsListViewYear.ItemsSource = resourcesList; } TabButtonManager.DeselectTab(WeekTab); TabButtonManager.DeselectTab(MonthTab); TabButtonManager.SelectTab(YearTab); WeekTab.Icon = "week_new_white_bg"; MonthTab.Icon = "month_new_white_bg"; YearTab.Icon = "year_new_green_bg"; StopBusyIndicator(); EventsListViewWeek.IsVisible = false; EventsListViewYear.IsVisible = true; EventsListViewMonth.IsVisible = false; }
private async Task ShowExistingCardPage() { TabButtonManager.DeselectTab(AddCardTab); TabButtonManager.SelectTab(ExistingCardTab); addCardTab.IsVisible = false; existingCardTab.IsVisible = true; if (CrossConnectivity.Current.IsConnected) { if (!CreditCardArray.Any()) { StartBusyIndicator(); var listCard = await DependencyService.Get <ITopupPaymentService>().GetAllCurrentCards(_credential.User.Email); _listCard = listCard.Any() ? listCard : new List <RetrievedCard>(); CreditCardArray = _listCard.Any() ? listCard.Select(x => x.Name).ToArray() : new string[] { }; StopBusyIndicator(); } } else { CreditCardArray = new string[] { "No Connection" }; } }