private void GoToFilterEvents() { Email = null; SortEvent = null; Where = null; Requirements = null; ShowPersonsOffEvent.Clear(); MessagingCenter.Send(this, Constants.MessagingCenter.EventsPage.NavigateToFilterEvents); }
private void GoToDetail(Events clickedEvent) { IsLoading = true; ShowPersonsOffEvent.Clear(); PersonsEventPresent.Clear(); Email = null; SortEvent = null; Where = null; Requirements = null; MessagingCenter.Send(this, Constants.MessagingCenter.EventsPage.SelectedRow, clickedEvent); Debug.WriteLine(clickedEvent); Debug.WriteLine(clickedEvent.Date); Debug.WriteLine(clickedEvent.Email); Debug.WriteLine(clickedEvent.Start); Debug.WriteLine(clickedEvent.End); Debug.WriteLine(clickedEvent.SortEvent); Debug.WriteLine(clickedEvent.Where); Debug.WriteLine(clickedEvent.Invites); Debug.WriteLine(clickedEvent.Requirements); Debug.WriteLine(clickedEvent.Name); Debug.WriteLine(clickedEvent.Transport); Debug.WriteLine(clickedEvent.FoodEnDrinks); Email = clickedEvent.Email; SortEvent = clickedEvent.SortEvent; Where = clickedEvent.Where; Requirements = clickedEvent.Requirements; Transport = clickedEvent.Transport; FoodEnDrinks = clickedEvent.FoodEnDrinks; Date = clickedEvent.Date; Name = clickedEvent.Name; if (clickedEvent.Invites.Count > 0) { for (int i = 0; i < clickedEvent.Invites.Count; i++) { ShowPersonsOffEvent.Add(clickedEvent.Invites[i]); PersonsEventPresent.Add(clickedEvent.Invites[i]); } ShowPersonsOffEvent = new ObservableCollection <Invites>(ShowPersonsOffEvent.OrderBy(i => i.Email)); } IsLoading = false; }