Пример #1
0
        public async Task AddService()
        {
            if (ServiceModel == null)
            {
                await Application.Current.MainPage.DisplayAlert("Greška!", "Niste odabrali uslugu!", "Odaberite ponovo!");

                return;
            }

            foreach (var x in SelectedServicesList)
            {
                if (x.ServiceID == ServiceModel.ServiceID)
                {
                    await Application.Current.MainPage.DisplayAlert("Greška!", "Usluga se već nalazi na listi odabranih!", "Odaberite novu.");

                    return;
                }
            }

            SelectedServicesList.Add(ServiceModel);
        }
Пример #2
0
 public int GetSelectedServicesList_Count()
 {
     return(SelectedServicesList.Count());
 }