Exemplo n.º 1
0
        private void Paste_Click(object sender, EventArgs e)
        {
            if (fileView.SelectedNode == null || IsFile(fileView.SelectedNode))
            {
                MessageBox.Show("Invaild selection.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            if (clipboard.deleteFlag)
            {
                adbFM.MoveFile(GetFullPath(clipboard.node), GetFullPath(fileView.SelectedNode), inRoot);
            }
            else
            {
                adbFM.CopyFile(GetFullPath(clipboard.node), GetFullPath(fileView.SelectedNode), inRoot);
            }

            ReloadUpper();

            paste.Enabled = false;
        }