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 { } }
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(); } }
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(); } }
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); } }