private void initilaizeImagesManagers()
        {
            foreach (TabPage tabPage in FeaturesTabs.Controls)
            {
                eTabPageType  tabPageType   = wichTabPage(tabPage.Name);
                ImagesMenager imagesMenager = ImagesMenagerFactory.CreateImagesManager(tabPageType, m_LoginUser);

                if (imagesMenager != null)
                {
                    r_ImagesMenagers.Add(imagesMenager);
                }
            }

            initilaizeImagesManager();
        }
Exemple #2
0
        public static ImagesMenager CreateImagesManager(eTabPageType i_TabPageType, User i_LoginUser)
        {
            ImagesMenager imagesMenager = null;

            switch (i_TabPageType)
            {
            case eTabPageType.Albums:
            {
                imagesMenager = new ImagesMenagerAlbums(i_LoginUser);
                break;
            }

            case eTabPageType.TVShows:
            {
                imagesMenager = new ImagesMenagerTVShow(i_LoginUser);
                break;
            }
            }

            return(imagesMenager);
        }