Пример #1
0
        private async void createCmd_Click(object sender, EventArgs e)
        {
            var dlg = new CreateDlg();

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

            await RunAsyncAction("Creating", async (t, p) => await Medium.Create(dlg.Path, dlg.FileType, (long)dlg.FileSize, t, p, DeviceType.DeviceType_HardDisk, dlg.Dynamic, dlg.SplitFile));
            await RefreshList();
        }