private void TowatchButton_Click(object sender, RoutedEventArgs e) { try { Episode episode = (Episode)WatchedListBox.SelectedItem; personalArea.ChangeEpisodeState(episode.Id, false); } catch { } }
private void EpisodesListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e) { try { Episode episode = (Episode)EpisodesListBox.SelectedItem; if (episode.AirdateDt > DateTime.Now) { MessageBox.Show("Episode is not realeased"); } else { personalArea.ChangeEpisodeState(episode.Id, !episode.Watched); } } catch { } }