Esempio n. 1
0
        private void btnMove_ServerClick(object sender, EventArgs e)
        {
            int iDestFolder = -1;

            try
            {
                iDestFolder = ctrlDirTree.FolderId;
            }
            catch { }
            if (iDestFolder == -1)
            {
                lblNotValid.Visible = true;
                return;
            }

            foreach (string sFld in alFolders)
            {
                int iFld = int.Parse(sFld);
                if (iFld != iDestFolder)
                {
                    fs.MoveDirectory(iFld, iDestFolder);
                }
            }

            foreach (string sFls in alFiles)
            {
                int iFls = int.Parse(sFls);
                fs.MoveFile(iFls, iDestFolder);
            }
            CHelper.CloseItAndRefresh(Response);
        }