Beispiel #1
0
 public TsvReader()
     : base(new CsvProfile('\t', '\"', "\r\n", true, true, 4096, "(empty)", "(null)"))
 {
     base.ProgressStatusChanged += (s, e)
                                   => ProgressStatusChanged?.Invoke(this
                                                                    , new NBi.Extensibility.ProgressStatusEventArgs(e.Status, e.Progress.Current, e.Progress.Total));
 }
Beispiel #2
0
 protected void Inform(string text)
 {
     ProgressStatusChanged?.Invoke(this, new ProgressStatusEventArgs(text));
 }
Beispiel #3
0
 protected void RaiseProgressStatus(string status, int current, int total)
 => ProgressStatusChanged?.Invoke(this, new ProgressStatusEventArgs(string.Format(status, current, total), current, total));
Beispiel #4
0
 protected void RaiseProgressStatus(string status)
 => ProgressStatusChanged?.Invoke(this, new ProgressStatusEventArgs(status));
Beispiel #5
0
 public CsvReader(CsvProfile profile, int bufferSize)
     : base(profile, bufferSize)
 {
     base.ProgressStatusChanged += (s, e) => ProgressStatusChanged?.Invoke(this, new ProgressStatusEventArgs(e.Status, e.Progress.Current, e.Progress.Total));
 }
Beispiel #6
0
 private void SetProgress(bool value)
 {
     ProgressIsVisible = value;
     _dispatcherService.InvokeOnUiThreadAsync(() => ProgressStatusChanged?.Invoke(this, EventArgs.Empty));
 }