private void Manager_OnInterfaceError(object sender, BitsInterfaceNotificationEventArgs e) { if (e.Job.JobId == base.wrapper.BitsJob.JobId) { if (base.InvokeRequired) { EventHandler <BitsInterfaceNotificationEventArgs> method = new EventHandler <BitsInterfaceNotificationEventArgs>(this.Manager_OnInterfaceError); base.Invoke(method, new object[] { sender, e }); } else { string str = e.Message + Environment.NewLine + e.Description + Environment.NewLine; this.txtJobError.Text = string.Format("{0} : {1} {2}", DateTime.Now, str, this.txtJobError.Text); } } }
private void manager_OnInterfaceError(object sender, BitsInterfaceNotificationEventArgs e) { this.OutputMessage(string.Format("Job '{0}': {1}", e.Job.DisplayName, e.Description)); }