Пример #1
0
        public void OnMensajeStatus(string titulo, string detalle)
        {
            if (MensajeStatus == null)
            {
                return;
            }

            MensajeEventArgs e = new MensajeEventArgs(titulo, detalle, MessageBoxIcon.Information);

            MensajeStatus(this, e);
        }
Пример #2
0
        public void OnMensajeError(string titulo, string detalle)
        {
            if (MensajeError == null)
            {
                return;
            }

            MensajeEventArgs e = new MensajeEventArgs(titulo, detalle, MessageBoxIcon.Error);

            MensajeError(this, e);
        }
Пример #3
0
        public void OnMensajeAlerta(string titulo, string detalle)
        {
            if (MensajeAlerta == null)
            {
                return;
            }

            MensajeEventArgs e = new MensajeEventArgs(titulo, detalle, MessageBoxIcon.Warning);

            MensajeAlerta(this, e);
        }
Пример #4
0
        public int OnMensajeDecision(string titulo, string detalle, int opcion)
        {
            if (MensajeAlerta == null)
            {
                return(0);
            }

            MensajeEventArgs e = new MensajeEventArgs(titulo, detalle, opcion, MessageBoxIcon.Warning);

            e.Opcion = opcion;
            MensajeDecision(this, e);

            return(e.Opcion);
        }