private async void compactCmd_Click(object sender, EventArgs e) => await RunMultiple(async di => { if (di.Format == "VDI") { await RunAsync("Compacting", async(t, p) => await Medium.CompactAsync(di.Location, t, p), di.UUID); } else if (di.Format == "VHD") { await RunAsync("Compacting", async(t, p) => await MSVirtualDisk.CompactVHD(di.Location, t, p), di.UUID); } else { MessageBox.Show(this, $"Unable to compact disks of type {di.Format}.", null, MessageBoxButtons.OK, MessageBoxIcon.Error); } });