private void OnShowViewClicked(ShowTileViewModel obj)
 {
     if (ShowViewClicked != null)
     {
         ShowViewClicked(this, obj);
     }
     TaskbarIcon taskbarIcon = TaskbarIcon.GetParentTaskbarIcon(this);
     taskbarIcon.CloseBalloon();
 }
Esempio n. 2
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);
        }
Esempio n. 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);
            }
        }
Esempio n. 4
0
 private void OnShowViewClicked(ShowTileViewModel showTileView)
 {
     var showView = showTileView.ShowViewModel;
     _selectedEpisodeTreeItems.Clear();
     showView.Show.NewEpisodes = false;
     ShowGrid.DataContext = showView;
     FilterFlyout.DataContext = showView;
     SwitchPage(1);
 }
Esempio n. 5
0
 private void on_ShowViewClicked(object sender, ShowTileViewModel showView)
 {
     if (!IsVisible)
         Show();
     OnShowViewClicked(showView);
 }