private async void Button_Clicked(object sender, EventArgs e) { if (this.Tretmani.SelectedItem == null) { tretmanigreska.Text = "** Morate odabrati tretman! **"; tretmanigreska.IsVisible = true; } else { tretmanigreska.Text = " "; tretmanigreska.IsVisible = false; } if (!tretmanigreska.IsVisible) { Tretman g = this.Tretmani.SelectedItem as Tretman; model.TretmanID = g.TretmanId; await model.RezervacijaTask(); await Navigation.PushAsync(new UposleniciPage()); } }
private async void Button_Clicked(object sender, EventArgs e) { if (this.Termini.SelectedItem == null) { terminigreska.Text = "** Morate odabrati termin! **"; terminigreska.IsVisible = true; } else { terminigreska.Text = " "; terminigreska.IsVisible = false; } if (!terminigreska.IsVisible) { Termini t = this.Termini.SelectedItem as Termini; model.TerminID = t.TerminId; await model.RezervacijaTask(); await Navigation.PushAsync(new IzletiPage()); } }