private void UpdateBurningInformation(FormatWriteUpdateEventArgs e)
 {
     if (!InvokeRequired)
     {
         burnProgressBar.Value = (e.LastWrittenLba - e.StartLba + 1) * 100 / e.SectorCount;
         _burnWriteActionPublisher.WriteAction = e._currentAction;
     }
     else
     {
         Invoke(new Action <FormatWriteUpdateEventArgs>(UpdateBurningInformation), e);
     }
 }
Exemple #2
0
 private void ImageMasterFormatWriteUpdate(ImageMaster sender, FormatWriteUpdateEventArgs e)
 {
     UpdateBurn?.Invoke(e);//сказать делегату или и делай
 }
Exemple #3
0
 private void UpdateProgressBar(FormatWriteUpdateEventArgs e)
 {
     prbarProgress.Value = (e.LastWrittenLba - e.StartLba + 1) * 100 / e.SectorCount;
     UpdateBurnState(e._currentAction);
 }
 private void _imageMaster_FormatWriteUpdate(ImageMaster sender, FormatWriteUpdateEventArgs e)
 {
     UpdateBurn?.Invoke(e);
 }