Exemplo n.º 1
0
        private async Task GoToShowsPageAction()
        {
            BackgroundActivity = true;
            _filterService.ClearFilter();
            if (SelectedCategory != null)
            {
                foreach (var g in Categories)
                {
                    if (SelectedCategory.ToLower().Equals(g.ToLower()))
                    {
                        _filterService.Category = g;
                        _filterService.IsActive = true;
                    }
                }
            }
            else
            {
                _filterService.Category = null;
            }

            if (EndTime != default(TimeSpan))
            {
                _filterService.Start    = StartTime;
                _filterService.IsActive = true;
            }

            if (EndTime != default(TimeSpan))
            {
                _filterService.End      = EndTime;
                _filterService.IsActive = true;
            }

            if (Title != null)
            {
                if (Title.Length > 0)
                {
                    _filterService.Title    = Title;
                    _filterService.IsActive = true;
                }
            }
            else
            {
                _filterService.Title = null;
            }

            await _navigationService.Close(this);
        }