示例#1
0
        private async Task LoadShowingByIdAndDate()
        {
            if (SelectedDate == null || SelectedFilm == null)
            {
                Showings.Clear();
                return;
            }

            try
            {
                await _events.PublishOnUIThreadAsync(new LoadingOnEvent());

                var res = await _showingEndpoint.GetShowingsByIdAndDate(SelectedFilm.Id, SelectedDate.Value);

                Showings = new BindingList <ShowingModel>(res);
            }
            catch (Exception ex)
            {
                // TODO
                throw;
            }
            finally
            {
                await _events.PublishOnUIThreadAsync(new LoadingOffEvent());
            }
        }
 private void RemoveShowingExecute(object obj)
 {
     Controller.Delete(SelectedShowing);
     Showings.Remove(SelectedShowing);
 }
示例#3
0
 public TVMovie(int newId, TVProgramme tvp)
     : this(newId)
 {
     Showings.Add(tvp);
     Title = tvp.Title;
 }
示例#4
0
 public void AddTime(Showtime time)
 {
     Showings.Add(time);
 }