protected void HistoryUpdate(HistoryUpdateEventArgs e)
 {
     if (OnHistoryUpdate != null)
     {
         OnHistoryUpdate(this, e);
     }
 }
 public void UpdateHistory(object sender, HistoryUpdateEventArgs e)
 {
     this.lstBoxHistory.Items.Add(e.UpdatedHistory);
     this.progressBar1.Value = e.CurrentProgress;
     this.Refresh();
 }