Example #1
0
 public void Fill(IYoutubeCategoryContainer catContainer, IYoutubeLanguageContainer langContainer, IYoutubePlaylistContainer plContainer, IPlaylistServiceConnectionContainer pscContainer)
 {
     categoryContainer = catContainer;
     languageContainer = langContainer;
     playlistContainer = plContainer;
     this.pscContainer = pscContainer;
 }
Example #2
0
        public LanguagePersistor(IYoutubeLanguageContainer container, string path)
        {
            LOGGER.Debug($"Creating language persistor for path '{path}'");

            Path      = path;
            Container = container;
        }
Example #3
0
        public AddVideosForm(ITemplate[] templates, IPath[] pathInfos, IYoutubeCategoryContainer categoryContainer, IYoutubeLanguageContainer languageContainer, IYoutubePlaylistContainer playlistContainer, IPlaylistServiceConnectionContainer pscContainer, IYoutubeAccount account)
        {
            InitializeComponent();
            editVideoInformationGrid.IsNewUpload = true;

            DialogResult = DialogResult.Cancel;

            CategoryContainer = categoryContainer;
            LanguageContainer = languageContainer;
            PlaylistContainer = playlistContainer;
            PscContainer      = pscContainer;
            Account           = account;
            Templates         = templates;
            PathInfos         = pathInfos;
        }
Example #4
0
        private void RecreateSaved()
        {
            LOGGER.Debug($"Recreating cache of saved languages");
            Saved = new YoutubeLanguageContainer();
            foreach (var language in Container.RegisteredLanguages)
            {
                LOGGER.Debug($"Recreating cache for language '{language.Name}'");
                var newLanguage = new YoutubeLanguage()
                {
                    Hl   = language.Hl,
                    Id   = language.Id,
                    Name = language.Name
                };

                Saved.RegisterLanguage(newLanguage);
            }
        }
Example #5
0
        public void Fill(IYoutubeVideo video, INotificationSettings notificationSettings, bool hasMailPrivilegue, IYoutubeCategoryContainer catContainer,
                         IYoutubeLanguageContainer langContainer, IYoutubePlaylistContainer plContainer, IPlaylistServiceConnectionContainer pscContainer)
        {
            categoryContainer = catContainer;
            RefreshCategories();

            languageContainer = langContainer;
            RefreshLanguages();

            playlistContainer = plContainer;
            RefreshPlaylists();

            HasMailPrivilegue    = hasMailPrivilegue;
            Video                = video;
            NotificationSettings = notificationSettings;

            PscContainer = pscContainer;
        }
Example #6
0
        public EditVideoForm(IYoutubeVideo video, INotificationSettings notificationSettings, bool hasMailPrivilegue, IYoutubeCategoryContainer catContainer, IYoutubeLanguageContainer langContainer, IYoutubePlaylistContainer plContainer, IPlaylistServiceConnectionContainer pscContainer)
            : this()
        {
            Video = video;
            NotificationSettings = notificationSettings;

            uploadGrid.IsNewUpload = false;
            uploadGrid.Fill(video, notificationSettings, hasMailPrivilegue, catContainer, langContainer, plContainer, pscContainer);
        }