Exemplo n.º 1
0
        /// <summary>
        /// 右键菜单下载文件到远程服务器
        /// </summary>
        private void item_downloadToServer_Click(object sender, EventArgs e)
        {
            //打开设置界面
            FormWget formWget = new FormWget(GetCurrentDirPath());

            formWget.ShowDialog();
            if (formWget.DialogResult == DialogResult.Yes)
            {
                string urlPath  = formWget.UrlPath;
                string savePath = formWget.SavePath;
                formWget.Close();

                _fileManager.Wget(urlPath, savePath);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 右键菜单下载文件到远程服务器
        /// </summary>
        private void item_downloadToServer_Click(object sender, EventArgs e)
        {
            //FormWget
            SelectedItemsStatus status = GetStatusOfSelectedItemsInListView();

            //打开设置界面
            _selectDirInTree = GetSelectedDirPathInDirTree();
            FormWget formWget = new FormWget(_selectDirInTree);

            formWget.ShowDialog();
            if (formWget.DialogResult == DialogResult.Yes)
            {
                string urlPath  = formWget.UrlPath;
                string savePath = formWget.SavePath;
                formWget.Close();

                _fileManager.Wget(urlPath, savePath);
            }
        }