private void backgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            string mensajeError = "";
            string mensajeOk    = "";

            mensajeError = ((string[])(e.UserState))[0];
            mensajeOk    = ((string[])(e.UserState))[1];


            if (mensajeError != "")
            {
                ErrorIntegracionEventArgs args = new ErrorIntegracionEventArgs();
                //args.Archivo = archivo;
                args.Error = mensajeError;

                OnErrorIntegracion(args);
            }

            if (mensajeOk != "")
            {
                AlertaIntegracionEventArgs args = new AlertaIntegracionEventArgs();
                //args.Archivo = archivo;
                args.Msg = mensajeOk;

                OnAlertaIntegracion(args);
            }
        }
        public virtual void OnAlertaIntegracion(AlertaIntegracionEventArgs e)
        {
            EventHandler <AlertaIntegracionEventArgs> handler = EventoAlertaIntegracion;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #3
0
 private void Alertas(object sender, Business.AlertaIntegracionEventArgs e)
 {
     lblProcesos.Text += e.Msg + Environment.NewLine;
     //lblProcesos.Refresh();
 }