Ejemplo n.º 1
0
 protected virtual void OnJobEvent(JobEventEventArgs e)
 {
     if (JobEvent != null)
     {
         JobEvent(this, e);
     }
 }
 private void UC_Hilo_Display_JobEvent(object sender, JobEventEventArgs e)
 {
     try
     {
         //Are we not on the UI thread
         if (InvokeRequired)
         {
             Invoke(new UC_Hilo_Display.JobEventHandler(this.UC_Hilo_Display_JobEvent), new object[] { sender, e });
         }
         else
         {
             //add the message to the list
             errorID++;
             dsErrors1.Errors.AddErrorsRow(e.Msg, errorID, e.ThreadName);
         }
     }
     catch (Exception ex)
     {
         BusSisLog.Log_Error("private void UC_Hilo_Display_JobEvent(object sender, JobEventEventArgs e)" + ex.Message.ToString(), eTipoError.ERROR, this.ToString());
     }
 }