Esempio n. 1
0
        public void SetObject(IMediaDetail selectedItem)
        {
            this.selectedItem = selectedItem;

            if (selectedItem.LanguageID != LanguagesMapper.GetDefaultLanguage().ID)
            {
                UseDefaultLanguageLayoutsToggleWrapper.Visible = true;
            }
        }
    private void Init()
    {
        if (connectionSettings == null)
        {
            throw new Exception("You must call FrameworkBaseMedia.InitConnectionSettings first");
        }

        defaultLanguage = LanguagesMapper.GetDefaultLanguage();
        currentLanguage = FrameworkSettings.GetCurrentLanguage();

        if (currentLanguage == null)
        {
            throw new Exception("Error loading default language");
        }

        /*rootMedia = FrameworkSettings.RootMedia;
         *
         * if (rootMedia != null)
         *  rootMediaDetail = FrameworkSettings.RootMediaDetail;*/
    }