public void ExportAsynch(ExportProgressArgs ea) { if (export == null) { return; } if (current != null) { return; } ea.Cancel = false; if (ea.Type == ExportProgressType.Initialize) { export.Initialize(ea); return; } toolProgress.Visible = true; if (ea.Type == ExportProgressType.Data) { exp = new ExportEditorDelegate(export.Export); } else if (ea.Type == ExportProgressType.Schema) { exp = new ExportEditorDelegate(export.ExportSchema); } AsyncCallback callBack = new AsyncCallback(ExportAsyncComplete); current = exp.BeginInvoke(ea, callBack, ea); }
void mb_ExportProgressChange(object sender, ExportProgressArgs e) { int _totalTables = (int)e.TotalTables; int _currentTable = (int)e.CurrentTableIndex; int _resultado = (_currentTable * 100) / _totalTables; worker.ReportProgress(_resultado); }
private async void Backup_ExportProgressChanged(object sender, ExportProgressArgs e) { ProgressValue = e.CurrentRowIndexInAllTables; TotalData = e.TotalRowsInAllTables; TableName = e.CurrentTableName; await Task.Delay(1000); }
void Mb_ExportProgressChanged(object sender, ExportProgressArgs e) { progressbarOperation.Text = String.Format("Экспорт {0}", e.CurrentTableName); progressbarOperation.Adjustment.Upper = e.TotalRowsInCurrentTable; progressbarOperation.Adjustment.Value = e.CurrentRowIndexInCurrentTable; progressbarTotal.Adjustment.Upper = e.TotalTables; progressbarTotal.Adjustment.Value = e.CurrentTableIndex; QSMain.WaitRedraw(); }
void mb_ExportProgressChanged(object sender, ExportProgressArgs e) { _currentRowIndexInAllTable = (int)e.CurrentRowIndexInAllTables; _currentRowIndexInCurrentTable = (int)e.CurrentRowIndexInCurrentTable; _currentTableIndex = e.CurrentTableIndex; _currentTableName = e.CurrentTableName; _totalRowsInAllTables = (int)e.TotalRowsInAllTables; _totalRowsInCurrentTable = (int)e.TotalRowsInCurrentTable; _totalTables = e.TotalTables; }
public void Dados_ExportProgressChanged(object sender, ExportProgressArgs e) { ProgressBar progressBar = new ProgressBar(); progressBar.Visible = true; progressBar.Minimum = 1; progressBar.Maximum = 100; progressBar.Value = 1; progressBar.Step = 1; }
void mb_ExportProgressChanged(object sender, ExportProgressArgs e) { if (cancel) { mb.StopAllProcess(); return; } totalTables = e.TotalTables; curTable = e.CurrentTableIndex; currentTableName = e.CurrentTableName; }
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); }
void mb_ExportProgressChanged(object sender, ExportProgressArgs e) { if (cancel) { mb.StopAllProcess(); return; } _currentRowIndexInAllTable = (int)e.CurrentRowIndexInAllTables; _currentRowIndexInCurrentTable = (int)e.CurrentRowIndexInCurrentTable; _currentTableIndex = e.CurrentTableIndex; _currentTableName = e.CurrentTableName; _totalRowsInAllTables = (int)e.TotalRowsInAllTables; _totalRowsInCurrentTable = (int)e.TotalRowsInCurrentTable; _totalTables = e.TotalTables; }
protected void OnExportProgress(ExportProgressArgs ea) { if (ea.Exception != null) { Helper.OnException(ea.Exception); ea.Exception = null; } else if (ea.Description == null) { toolProgress.Visible = true; toolProgress.Value = ea.Percentage; if (listTables.List.SelectedItem != ea.Table) { listTables.List.SelectedItem = ea.Table; } } else { GuiService.Main.SetStatus(new StateInfo("Export", ea.Description)); } }
public void ExportProgressStatusChanged(object sender, ExportProgressArgs e) { Logging.WriteLine("MySQL backup status: " + e.CurrentRowIndexInAllTables + "/" + e.TotalRowsInAllTables); }
private void backup_ExportProgressChanged(object sender, ExportProgressArgs e) { maximo = (int)e.TotalRowsInAllTables; _maximo = (int)e.CurrentRowIndexInAllTables; }
protected void OnExportComplete(object sender, ExportProgressArgs ea) { Application.Invoke(() => OnExportComplete(ea)); }
private void OnExportProgress(object sender, ExportProgressArgs e) { Application.Invoke(() => OnExportProgress(e)); }