public CreateEtappePage(RondesGebruiker rondeInfo) { checkConnectivity(); RondeInfo = rondeInfo; InitializeComponent(); laps = 1; btnCreate.Clicked += btnCreate_clicked; //numberpicker btnUp.Clicked += btnUp_clicked; btnDown.Clicked += btnDown_clicked; tpEtappe.Time = DateTime.Now.AddMinutes(1).TimeOfDay; lblAantalRondes.Text = Convert.ToString(1); this.Title = rondeInfo.RondeNaam; //Kleuren instellen voor navbar NavigationPage.SetHasBackButton(this, true); Color fireRed = Color.FromHex("#B22222"); ((NavigationPage)Application.Current.MainPage).BarBackgroundColor = fireRed; ((NavigationPage)Application.Current.MainPage).BarTextColor = Color.White; }
private void LvwRondes_ItemSelected(object sender, SelectedItemChangedEventArgs e) { RondesGebruiker ronde = lvwRondes.SelectedItem as RondesGebruiker; if (ronde != null) { Navigation.PushAsync(new EtappeOverzichtPage(ronde, GebruikersInfo)); lvwRondes.SelectedItem = null; } }
public DeelnemersOverzichtPage(RondesGebruiker rondeInfo, GebruikerV2 gebruikersInfo) { RondeInfo = rondeInfo; GebruikersInfo = gebruikersInfo; checkConnectivity(); InitializeComponent(); if (GebruikersInfo.GebruikerId == RondeInfo.Admin) { //Kleuren instellen voor navbar NavigationPage.SetHasBackButton(this, true); Color fireRed = Color.FromHex("#B22222"); ((NavigationPage)Application.Current.MainPage).BarBackgroundColor = fireRed; ((NavigationPage)Application.Current.MainPage).BarTextColor = Color.White; btnRefresh.TextColor = fireRed; btnRefresh.BorderColor = fireRed; admin = true; } else { //Kleuren instellen voor navbar //NavigationPage.SetHasBackButton(this, true); Color Blauw = Color.FromHex("#015D99"); ((NavigationPage)Application.Current.MainPage).BarBackgroundColor = Blauw; ((NavigationPage)Application.Current.MainPage).BarTextColor = Color.White; btnRefresh.TextColor = Blauw; btnRefresh.BorderColor = Blauw; admin = false; } btnRefresh.Clicked += BtnRefresh_Clicked; LoadDeelnemersAsync(); }
public EtappeOverzichtPage(RondesGebruiker rondeInfo, GebruikerV2 gebruikersInfo) { checkConnectivity(); RondeInfo = rondeInfo; GebruikersInfo = gebruikersInfo; InitializeComponent(); //UserControls btnInvite.Clicked += BtnInvite_Clicked; btnStoppen.Clicked += BtnStoppen_Clicked; btnRefresh.Clicked += BtnRefresh_Clicked; //AdminControls btnCreateEtappe.Clicked += BtnCreateEtappe_Clicked; btnInviteAdmin.Clicked += BtnInviteAdmin_Clicked; btnVerwijder.Clicked += BtnVerwijder_Clicked; lvwEtappesAdmin.ItemSelected += LvwEtappesAdmin_ItemSelected; btnDeelnemers.Clicked += BtnDeelnemers_Clicked; if (GebruikersInfo.GebruikerId == RondeInfo.Admin) { //Kleuren instellen voor navbar NavigationPage.SetHasBackButton(this, true); Color fireRed = Color.FromHex("#B22222"); ((NavigationPage)Application.Current.MainPage).BarBackgroundColor = fireRed; ((NavigationPage)Application.Current.MainPage).BarTextColor = Color.White; //AdminControls tonen btnCreateEtappe.IsVisible = true; btnInviteAdmin.IsVisible = true; btnVerwijder.IsVisible = true; lvwEtappesAdmin.IsVisible = true; //AdminColors btnDeelnemers.TextColor = fireRed; btnDeelnemers.BorderColor = fireRed; btnRefresh.TextColor = fireRed; btnRefresh.BorderColor = fireRed; btnCreateEtappe.TextColor = fireRed; btnCreateEtappe.BorderColor = fireRed; btnInviteAdmin.TextColor = fireRed; btnInviteAdmin.BorderColor = fireRed; btnVerwijder.BackgroundColor = fireRed; lblNoData.TextColor = fireRed; //UserControls niet tonen btnStoppen.IsVisible = false; btnInvite.IsVisible = false; grdUserStanding.IsVisible = false; lvwEtappes.IsVisible = false; } else { //Kleuren instellen voor navbar //NavigationPage.SetHasBackButton(this, true); Color Blauw = Color.FromHex("#015D99"); ((NavigationPage)Application.Current.MainPage).BarBackgroundColor = Blauw; ((NavigationPage)Application.Current.MainPage).BarTextColor = Color.White; } LoadEtappesAsync(); LoadTitle(); }