Beispiel #1
0
        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();
        }
Beispiel #2
0
        protected virtual void OnExportComplete()
        {
            timer.Stop();

            args.ImportStop   = DateTime.Now;
            args.Duration     = timer.Elapsed;
            args.RowsImported = TotalRowsImported();

            ExportComplete?.Invoke(this, args);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 /// <summary>
 /// 
 /// </summary>
 private void OnExportComplete(TimeSpan duration, bool cancelled)
 {
     ExportComplete?.Invoke(this, this.FileName, duration, cancelled);
 }