void videoHandler_VideoWatchedEvent(VideoPlayers.VideoWatchedEventArgs ev)
        {
            try
            {
                MainWindow mainwdw = (MainWindow)Window.GetWindow(this);

                if (MainWindow.CurrentMainTabIndex == MainWindow.TAB_MAIN_Dashboard && mainwdw.dash.Visibility == Visibility.Visible)
                {
                    RefreshData(true, false, false);
                }
            }
            catch { }
        }
        void videoHandler_VideoWatchedEvent(VideoPlayers.VideoWatchedEventArgs ev)
        {
            try
            {
                MainWindow mainwdw = (MainWindow)Window.GetWindow(this);

                if (MainWindow.CurrentMainTabIndex == MainWindow.TAB_MAIN_Dashboard && mainwdw.tileContinueWatching.Visibility == System.Windows.Visibility.Visible)
                {
                    RefreshData();
                }
            }
            catch { }
        }
Пример #3
0
        void videoHandler_VideoWatchedEvent(VideoPlayers.VideoWatchedEventArgs ev)
        {
            if (MainWindow.CurrentMainTabIndex == (int)MainWindow.TAB_MAIN.Playlists)
            {
                VM_Playlist pl = DataContext as VM_Playlist;
                if (pl == null)
                {
                    return;
                }

                pl.PopulatePlaylistObjects();
                ShowNextEpisode();
            }
        }
Пример #4
0
        void videoHandler_VideoWatchedEvent(VideoPlayers.VideoWatchedEventArgs ev)
        {
            if (MainWindow.CurrentMainTabIndex == MainWindow.TAB_MAIN_Playlists)
            {
                PlaylistVM pl = this.DataContext as PlaylistVM;
                if (pl == null)
                {
                    return;
                }

                pl.PopulatePlaylistObjects();
                ShowNextEpisode();
            }
        }
Пример #5
0
        void videoHandler_VideoWatchedEvent(VideoPlayers.VideoWatchedEventArgs ev)
        {
            try
            {
                MainWindow mainwdw = (MainWindow)Window.GetWindow(this);

                if (MainWindow.CurrentMainTabIndex == (int)MainWindow.TAB_MAIN.Dashboard &&
                    mainwdw?.dash.Visibility == Visibility.Visible)
                {
                    RefreshData(true, false, false);
                }
            }
            catch (Exception ex)
            {
                LogManager.GetCurrentClassLogger().Error(ex);
            }
        }