private void ReportProgress() { switch (_currentProcess) { case ProcessType.Export: { if (ExportProgressChanged == null) { return; } var arg = new ExportProgressArgs(_currentTableName, _totalRowsInCurrentTable, _totalRowsInAllTables, _currentRowIndexInCurrentTable, _currentRowIndexInAllTable, _totalTables, _currentTableIndex); ExportProgressChanged(this, arg); } break; case ProcessType.Import: { if (ImportProgressChanged == null) { return; } var arg = new ImportProgressArgs(_currentBytes, _totalBytes); ImportProgressChanged(this, arg); } break; } }
void ReportProgress() { if (currentProcess == ProcessType.Export) { if (ExportProgressChanged != null) { ExportProgressArgs arg = new ExportProgressArgs(_currentTableName, _totalRowsInCurrentTable, _totalRowsInAllTables, _currentRowIndexInCurrentTable, _currentRowIndexInAllTable, _totalTables, _currentTableIndex); ExportProgressChanged(this, arg); } } else if (currentProcess == ProcessType.Import) { if (ImportProgressChanged != null) { ImportProgressArgs arg = new ImportProgressArgs(_currentBytes, _totalBytes); ImportProgressChanged(this, arg); } } }
void mb_ImportProgressChanged(object sender, ImportProgressArgs e) { totalBytes = (int)e.TotalBytes; curBytes = (int)e.CurrentBytes; }
void ReportProgress() { if (currentProcess == ProcessType.Export) { if (ExportProgressChanged != null) { ExportProgressArgs arg = new ExportProgressArgs(_currentTableName, _totalRowsInCurrentTable, _totalRowsInAllTables, _currentRowIndexInCurrentTable, _currentRowIndexInAllTable, _totalTables, _currentTableIndex); ExportProgressChanged(this, arg); } } else if (currentProcess == ProcessType.Import) { if (ImportProgressChanged != null) { ImportProgressArgs arg = new ImportProgressArgs(_currentBytes, _totalBytes); ImportProgressChanged(this, arg); } } }