Beispiel #1
0
        public NewVideoDownload()
        {
            InitializeComponent();

            extension = (VideoDownloadExtension)AppManager.Instance.Application.GetExtensionByType(typeof(VideoDownloadExtension));

            videoFormatCtrl1.Change += new EventHandler(videoFormatCtrl1_Change);
        }
Beispiel #2
0
        public NewVideoDownload()
        {
            InitializeComponent();

            extension = (VideoDownloadExtension)AppManager.Instance.Application.GetExtensionByType(typeof(VideoDownloadExtension));

            videoFormatCtrl1.Change += new EventHandler(videoFormatCtrl1_Change);            
        }
Beispiel #3
0
        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;
            }
        }
Beispiel #6
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);
            }
        }
Beispiel #7
0
        public void NewVideoDownload()
        {
            VideoDownloadExtension ext = (VideoDownloadExtension)App.Instance.GetExtensionByType(typeof(VideoDownloadExtension));

            ((VideoDownloadUIExtension)ext.UIExtension).ShowNewVideoDialog(null, true);
        }