Ejemplo n.º 1
0
        void BTN_MID(object sender, EventArgs e)
        {
            SetPositionFrm set = new SetPositionFrm();

            set.MdiParent = this;
            set.Show();
        }
Ejemplo n.º 2
0
        bool SetPosByWnd()
        {
            SetPositionFrm setpos = new SetPositionFrm();

            setpos.total    = ((DownloadRecordVideo)downloader).GetDlr().i;
            setpos.duration = ((DownloadRecordVideo)downloader).GetDuration();
            setpos.ShowDialog();
            ((DownloadRecordVideo)downloader).GetDlr().SetPos(setpos.start, setpos.end);
            if (setpos.Cancel)
            {
                btn_start.Enabled = true;
                btn_stop.Enabled  = false;
                lbl_info.Text     = "下载已经取消";
            }
            return(setpos.Cancel);
        }
Ejemplo n.º 3
0
        bool SetPosByWndPre()
        {
            SetPositionFrm setpos = new SetPositionFrm();

            setpos.total = ((DownloadPreviousVideo)downloader).GetDlr().i;
            setpos.SetUnit();
            setpos.ShowDialog();

            string url = setpos.UrlGenerate();

            Downloader.filedir = setpos.fileDir;
            ((DownloadPreviousVideo)downloader).videoUrl = url;
            if (setpos.Cancel)
            {
                btn_start.Enabled = true;
                btn_stop.Enabled  = false;
                lbl_info.Text     = "下载已经取消";
            }
            return(setpos.Cancel);
        }