Exemple #1
0
 /// <summary>
 /// Free up memory from announcements
 /// </summary>
 private void UnloadAnnouncements()
 {
     while (announcementItems.Count > 0)
     {
         UserControl announcement = announcementItems.ElementAt(0);
         if (announcement is Welcome)
         {
             Welcome welcome = announcement as Welcome;
             announcementItems.Remove(welcome);
             welcome.UserControl_Unloaded(null, null);
             welcome.Unloaded -= welcome.UserControl_Unloaded;
         }
         else if (announcement is PlaybackMode)
         {
             PlaybackMode playbackMode = announcement as PlaybackMode;
             announcementItems.Remove(playbackMode);
             playbackMode.UserControl_Unloaded(null, null);
             playbackMode.Unloaded -= playbackMode.UserControl_Unloaded;
         }
         else if (announcement is ThemeMode)
         {
             ThemeMode themeMode = announcement as ThemeMode;
             announcementItems.Remove(themeMode);
             themeMode.UserControl_Unloaded(null, null);
             themeMode.Unloaded -= themeMode.UserControl_Unloaded;
         }
         else if (announcement is TvMode)
         {
             TvMode tvMode = announcement as TvMode;
             announcementItems.Remove(tvMode);
             tvMode.UserControl_Unloaded(null, null);
             tvMode.Unloaded -= tvMode.UserControl_Unloaded;
         }
         else if (announcement is PlaybackOptions)
         {
             PlaybackOptions playbackOptions = announcement as PlaybackOptions;
             announcementItems.Remove(playbackOptions);
             playbackOptions.UserControl_Unloaded(null, null);
             playbackOptions.Unloaded -= playbackOptions.UserControl_Unloaded;
         }
         else if (announcement is Shuffle)
         {
             Shuffle shuffle = announcement as Shuffle;
             announcementItems.Remove(shuffle);
             shuffle.UserControl_Unloaded(null, null);
             shuffle.Unloaded -= shuffle.UserControl_Unloaded;
         }
         else if (announcement is NewReleases)
         {
             NewReleases newReleases = announcement as NewReleases;
             announcementItems.Remove(newReleases);
             newReleases.UserControl_Unloaded(null, null);
             newReleases.Unloaded -= newReleases.UserControl_Unloaded;
         }
     }
 }
Exemple #2
0
 public void ThreeDOff()
 {
     _mode = TvMode.StandartMode;
 }
 public void ThreeDOn()
 {
     _mode = TvMode.ThreeDMode;
 }
Exemple #4
0
 public void ThreeDOn()
 {
     _mode = TvMode.ThreeDMode;
 }
 public void ThreeDOff()
 {
     _mode = TvMode.StandartMode;
 }