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); } }
private void ImageMasterFormatWriteUpdate(ImageMaster sender, FormatWriteUpdateEventArgs e) { UpdateBurn?.Invoke(e);//сказать делегату или и делай }
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); }