public void Fill(IYoutubeCategoryContainer catContainer, IYoutubeLanguageContainer langContainer, IYoutubePlaylistContainer plContainer, IPlaylistServiceConnectionContainer pscContainer) { categoryContainer = catContainer; languageContainer = langContainer; playlistContainer = plContainer; this.pscContainer = pscContainer; }
public LanguagePersistor(IYoutubeLanguageContainer container, string path) { LOGGER.Debug($"Creating language persistor for path '{path}'"); Path = path; Container = container; }
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; }
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); } }
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; }
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); }