示例#1
0
 private void TowatchButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Episode episode = (Episode)WatchedListBox.SelectedItem;
         personalArea.ChangeEpisodeState(episode.Id, false);
     }
     catch { }
 }
示例#2
0
 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 { }
 }