Пример #1
0
        private async void resizeCmd_Click(object sender, EventArgs e)
        {
            if (CurSel == null)
            {
                return;
            }

            var dlg = new ResizeDlg(CurSel.UUID);

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

            await RunAsync("Resizing", async (t, p) => await Medium.ResizeAsync(CurSel.Location, dlg.NewDiskSize, t, p), CurSel.UUID);
        }