private void OnShowViewClicked(ShowTileViewModel obj)
 {
     if (ShowViewClicked != null)
     {
         ShowViewClicked(this, obj);
     }
     TaskbarIcon taskbarIcon = TaskbarIcon.GetParentTaskbarIcon(this);
     taskbarIcon.CloseBalloon();
 }
        public MainWindowViewModel(ObservableCollection<FavShowData> shows)
        {
            _tvShows = new ObservableCollection<ShowTileViewModel>();

            shows.CollectionChanged += update_source;

            foreach (FavShowData favShowData in shows)
            {
                var x = new ShowTileViewModel(favShowData);
                _tvShows.Add(x);
            }
            if (Settings.Instance.SortShowsAlphabetically)
                _tvShows.Sort(ShowComparer);
        }
Exemple #3
0
        public MainWindowViewModel(ObservableCollection <FavShowData> shows)
        {
            _tvShows = new ObservableCollection <ShowTileViewModel>();

            shows.CollectionChanged += update_source;

            foreach (FavShowData favShowData in shows)
            {
                var x = new ShowTileViewModel(favShowData);
                _tvShows.Add(x);
            }
            if (Settings.Instance.SortShowsAlphabetically)
            {
                _tvShows.Sort(ShowComparer);
            }
        }
 private void OnShowViewClicked(ShowTileViewModel showTileView)
 {
     var showView = showTileView.ShowViewModel;
     _selectedEpisodeTreeItems.Clear();
     showView.Show.NewEpisodes = false;
     ShowGrid.DataContext = showView;
     FilterFlyout.DataContext = showView;
     SwitchPage(1);
 }
 private void on_ShowViewClicked(object sender, ShowTileViewModel showView)
 {
     if (!IsVisible)
         Show();
     OnShowViewClicked(showView);
 }