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

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

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