Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 4
0
 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);
         }
     }
 }