예제 #1
0
        private void btn_guardar_Click(object sender, EventArgs e)
        {
            cuadroMensaje mensaje    = new cuadroMensaje();
            parameters    parametros = new parameters();

            if (parametros.fnIngresaDatosCamara(this.cmbbx_marca_camara.Text, this.txt_ip_camara.Text, this.txt_puerto_camara.Text, this.txt_usuario_cam.Text, this.txt_password_cam.Text, this.cmbbx_tipo_terminal.Text, this.cbx_tipo_visor.Text))
            {
                mensaje.fnCargarMensaje("SE REGISTRARON LOS DATOS CORRECTAMENTE");
                mensaje.ShowDialog();
            }
            else
            {
                mensaje.fnCargarMensaje("ERROR: NO SE GUARDARON LOS DATOS...");
                mensaje.ShowDialog();
            }
            this.Hide();
        }
        private void btn_cancel_Click(object sender, EventArgs e)
        {
            cuadroMensaje mensaje = new cuadroMensaje();

            mensaje.fnCargarMensaje("SE HA GUARDADO EL REGISTRO DE LA TRANSACCIÓN!!!");
            mensaje.ShowDialog();

            Thread.Sleep(1500);
            this.Hide();
        }