protected override void OnPageLoad()
        {
            LogMyFilms.Debug("OnPageLoad() - Cover Manager Window initialization started ...");
              AllocResources();
              MovieId = MyFilms.conf.StrIndex;
              MyFilmsDetail.Searchtitles sTitles = MyFilmsDetail.GetSearchTitles(MyFilms.r[MyFilms.conf.StrIndex], MyFilmsDetail.GetMediaPathOfFirstFile(MyFilms.r, MovieId));
              ArtworkFileName = MyFilmsDetail.GetOrCreateCoverFilename(MyFilms.r, MyFilms.conf.StrIndex, sTitles.MasterTitle);

              GUIPropertyManager.SetProperty("#currentmodule", GUILocalizeStrings.Get(10799201)); // MyFilms Cover Manager

              loadingWorker = new BackgroundWorker
              {
            WorkerReportsProgress = true,
            WorkerSupportsCancellation = true
              };
              loadingWorker.DoWork += WorkerDoWork;
              loadingWorker.ProgressChanged += WorkerProgressChanged;
              loadingWorker.RunWorkerCompleted += WorkerRunWorkerCompleted;

              if (MFacade != null)
              {
            if (initialView == -1)
            {
              initialView = 2; // bigthumbs as default ...
              CurrentView = (View)initialView;
            }
            MFacade.CurrentLayout = (GUIFacadeControl.Layout)CurrentView;
              }

              MyFilmsDetail.DetailsUpdated += OnDetailsUpdated;

              base.OnPageLoad();

              // update skin controls
              UpdateLayoutButton();
              if (LabelResolution != null) LabelResolution.Label = GUILocalizeStrings.Get(10799202); //  resolution

              if (ButtonFilters != null) ButtonFilters.Label = GUILocalizeStrings.Get(10799206); //  Filter
              if (ButtonDownloadCover != null) ButtonDownloadCover.Label = GUILocalizeStrings.Get(10799207); //  Download Covers

              ClearProperties();
              UpdateFilterProperty(false);

              string movielabel = MyFilms.r[MovieId][MyFilms.conf.StrTitle1].ToString();
              if (!string.IsNullOrEmpty(MyFilms.r[MovieId][MyFilms.conf.StrTitle2].ToString())) movielabel += " (" + MyFilms.r[MovieId][MyFilms.conf.StrTitle2] + ")";
              if (!string.IsNullOrEmpty(MyFilms.r[MovieId]["Year"].ToString())) movielabel += " - [" + MyFilms.r[MovieId]["Year"] + "]";
              MovieLabel = movielabel;

              MyFilmsDetail.setGUIProperty("cover.currentmoviename", MovieLabel);
              if (!string.IsNullOrEmpty(MyFilms.r[MovieId]["Picture"].ToString())) MyFilmsDetail.setGUIProperty("picture", ArtworkFileName); // only set preview, if DB is not empty ...

              loadingWorker.RunWorkerAsync(MovieId);
              LogMyFilms.Debug("OnPageLoad() - Cover Manager Window initialization finished ...");
        }
        private void ChangeLayoutAction(int iLayout)
        {
            LogMyFilms.Debug("Change_Layout_Action() - change facade layout to '" + iLayout + "'");
              switch (iLayout)
              {
            case 0:
              CurrentView = View.List;
              MFacade.CurrentLayout = GUIFacadeControl.Layout.List;
              break;
            case 1:
              CurrentView = View.Icons;
              MFacade.CurrentLayout = GUIFacadeControl.Layout.SmallIcons;
              break;
            case 2:
              CurrentView = View.LargeIcons;
              MFacade.CurrentLayout = GUIFacadeControl.Layout.LargeIcons;
              break;
            case 3:
              CurrentView = View.FilmStrip;
              MFacade.CurrentLayout = GUIFacadeControl.Layout.Filmstrip;
              break;
            case 4:
              CurrentView = View.AlbumView;
              MFacade.CurrentLayout = GUIFacadeControl.Layout.AlbumView;
              break;
            case 5:
              CurrentView = View.PlayList;
              MFacade.CurrentLayout = GUIFacadeControl.Layout.Playlist;
              break;
            case 6:
              CurrentView = View.CoverFlow;
              MFacade.CurrentLayout = GUIFacadeControl.Layout.CoverFlow;
              break;

            default:
              CurrentView = View.LargeIcons;
              MFacade.CurrentLayout = GUIFacadeControl.Layout.LargeIcons;
              break;
              }
        }
 protected bool AllowView(View view)
 {
     switch (view)
       {
     case View.List:
     case View.AlbumView:
     case View.PlayList:
       return false;
     default:
       return true;
       }
 }