Example #1
0
        private async void cloneCmd_Click(object sender, EventArgs e)
        {
            if (CurSel == null)
            {
                return;
            }

            var newfn = Path.GetFileNameWithoutExtension(CurSel.Location) + "_Copy" + Path.GetExtension(CurSel.Location);
            var dlg   = new CloneDlg(CurSel.UUID)
            {
                DestPath = newfn
            };

            if (dlg.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }

            await RunAsync("Cloning", async (t, p) => await Medium.CloneAsync(CurSel.Location, dlg.DestPath, dlg.FileType, dlg.Dynamic, dlg.SplitFile, t, p));
            await RefreshList();
        }