private void Continue() { while (currentStep < exportSteps.Length) { ExportStep step = exportSteps[currentStep]; float progress = (float)currentStep / exportSteps.Length; EditorUtility.DisplayProgressBar("Exporting", step.message + "...", progress); if (!ExecuteStep(step)) { break; } currentStep++; if (currentStep == exportSteps.Length) { ExportComplete?.Invoke(); } if (step.waitForAssemblyReload) { return; } } StopExport(); }
protected virtual void OnExportComplete() { timer.Stop(); args.ImportStop = DateTime.Now; args.Duration = timer.Elapsed; args.RowsImported = TotalRowsImported(); ExportComplete?.Invoke(this, args); }
private void OnExportComplete(ExportProgressArgs ea) { GuiService.Main.SetStatus(new StateInfo("Export", "Complete!")); listTables.ReadOnly = listColumns.ReadOnly = false; toolStart.Sensitive = true; toolCancel.Sensitive = toolProgress.Visible = false; MessageDialog.ShowMessage(ParentWindow, "Export Complete"); current = null; ExportComplete?.Invoke(this, ea); }
/// <summary> /// /// </summary> private void OnExportComplete(TimeSpan duration, bool cancelled) { ExportComplete?.Invoke(this, this.FileName, duration, cancelled); }