private async void moveCmd_Click(object sender, EventArgs e) { if (CurSel == null) { return; } var dlg = new MoveDlg(CurSel.UUID); if (dlg.ShowDialog(this) != DialogResult.OK) { return; } await RunAsync("Moving", async (t, p) => { await Medium.MoveAsync(CurSel.Location, dlg.DestPath, t, p); CurSel.Location = dlg.DestPath; }, CurSel.UUID); }