Пример #1
0
        void exporter_BatchExported(object sender, BatchExportedEventArgs e)
        {
            TUsExported = e.TotalExported;

            if (TUs > 0)
            {
                ProgressExport(TUsExported * 100 / TUs);
            }
        }
Пример #2
0
        private void Exporter_BatchExported(object sender, BatchExportedEventArgs e)
        {
            string info;

            info  = "Total TUs processed: " + e.TotalProcessed + "\n";
            info += "Total TUs exported: " + e.TotalExported + "\n";

            MessageBox.Show(info, "Export statistics for batch");
            e.Cancel = false;
        }
Пример #3
0
        private void exporter_BatchExported(object sender, BatchExportedEventArgs e)
        {
            TotalExported  = e.TotalExported;
            TotalProcessed = e.TotalProcessed;

            if (OnProgressChanged != null)
            {
                OnProgressChanged.Invoke(this, new ProgressEventArgs
                {
                    Type            = ProgressEventArgs.ProcessorType.TmExporter,
                    Description     = string.Empty,
                    CurrentProgress = e.TotalExported,
                    TotalUnits      = TotalUnits
                });
            }
        }
 /// <summary>
 /// Updates the console with current export progress
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Object containing current progress value and related info.</param>
 private void Exporter_BatchExported(object sender, BatchExportedEventArgs e)
 {
     this.exportProgress = e.TotalExported;
 }
Пример #5
0
 /// <summary>
 /// Export event handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void exporter_BatchExported(object sender, BatchExportedEventArgs e)
 {
     WriteResult(e.TotalProcessed + " TU(s) exported.\r\n");
     e.Cancel = false;
 }