/// <summary> /// Starts the bundle export process /// </summary> public void StartExport() { btn_ok.Visible = false; _canClose = false; _exporter.ExportBundleSheet(_sheet, new CancellationToken(), ExportHandler).ContinueWith( task => { Invoke(new Action(() => { var img = task.Result.Sheet; // Save the image now lbl_progress.Text = @"Saving to disk..."; img.Save(_savePath); lbl_progress.Text = @"Export successful!"; _canClose = true; btn_ok.Visible = true; })); }); }