void _clientResourceCRUD_OnPartTransmit(object sender, PartSendEventArgs e) { if (OnPartTransmit != null) OnPartTransmit(sender, e); }
void clientResourceCRUD_OnPartTransmit(object sender, PartSendEventArgs e) { if (e.NumberOfParts <= 1) return; if (splash == null) { splash = SplashForm.CreateAndShowForm(true, true); splash.OnCancel += new EventHandler(splash_OnCancel); } splash.Progress = (int)(e.Part * 1f / e.NumberOfParts * 100f); Application.DoEvents(); }
private void _showPreparator_OnResourceTransmit(/*object sender,*/ PartSendEventArgs e) { if (_callback != null) { try { _callback.UploadProgress(e.Part, e.NumberOfParts, e.DisplayName); } catch (Exception ex) { _config.EventLog.WriteError(string.Format("ShowService:OnResourceTransmit \n {0}", ex)); } } }