public NewVideoDownload() { InitializeComponent(); extension = (VideoDownloadExtension)AppManager.Instance.Application.GetExtensionByType(typeof(VideoDownloadExtension)); videoFormatCtrl1.Change += new EventHandler(videoFormatCtrl1_Change); }
public NewVideoDownload() { InitializeComponent(); extension = (VideoDownloadExtension)AppManager.Instance.Application.GetExtensionByType(typeof(VideoDownloadExtension)); videoFormatCtrl1.Change += new EventHandler(videoFormatCtrl1_Change); }
public void NewDownloadFromData(string url, string filename) { VideoDownloadExtension ext = (VideoDownloadExtension)App.Instance.GetExtensionByType(typeof(VideoDownloadExtension)); if (ext.GetHandlerByURL(url) != null) { ((VideoDownloadUIExtension)ext.UIExtension).ShowNewVideoDialog(url, false); } else { NewFileDownload(url, filename, false); } }
private void SupportedVideoSitesForm_Load(object sender, EventArgs e) { extension = (VideoDownloadExtension)AppManager.Instance.Application.GetExtensionByType(typeof(VideoDownloadExtension)); for (int i = 0; i < extension.Handlers.Count; i++) { this.lstSites.Items.Add(extension.Handlers[i]); } if (this.lstSites.Items.Count > 0) { this.lstSites.SelectedIndex = 0; } }
private void SupportedVideoSitesForm_Load(object sender, EventArgs e) { extension = (VideoDownloadExtension)AppManager.Instance.Application.GetExtensionByType(typeof(VideoDownloadExtension)); for (int i = 0; i < extension.Handlers.Count; i++) { this.lstSites.Items.Add(extension.Handlers[i]); } if (this.lstSites.Items.Count > 0) { this.lstSites.SelectedIndex = 0; } }
public void NewDownloadFromClipboardData() { string url = ClipboardHelper.GetURLOnClipboard(); if (string.IsNullOrEmpty(url) || lastClipboardURL == url) { return; } lastClipboardURL = url; VideoDownloadExtension ext = (VideoDownloadExtension)App.Instance.GetExtensionByType(typeof(VideoDownloadExtension)); if (ext.GetHandlerByURL(url) != null) { ((VideoDownloadUIExtension)ext.UIExtension).ShowNewVideoDialog(null, false); } else { NewFileDownload(null, null, false); } }
public void NewVideoDownload() { VideoDownloadExtension ext = (VideoDownloadExtension)App.Instance.GetExtensionByType(typeof(VideoDownloadExtension)); ((VideoDownloadUIExtension)ext.UIExtension).ShowNewVideoDialog(null, true); }