Esempio n. 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frm_crud = new C_persona_crud();

            using (frm_people_crud crud_people = frm_crud.formulario())
            {
                desenfoque_abrir_formulario();

                crud_people.btnAcept.Click += new EventHandler(read_persona);
                crud_people.ShowDialog();

                overlayForm.Dispose();
            }
        }
Esempio n. 2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            desenfoque_abrir_formulario();
            if (e_persona.Clave != 0)
            {
                e_persona.Operacion = "update";
                e_persona.Visible   = false;

                frm_crud = new C_persona_crud(e_persona);

                using (frm_people_crud crud_people = frm_crud.formulario())
                {
                    crud_people.btnAcept.Click += new EventHandler(read_persona);
                    crud_people.ShowDialog();
                }
            }
            else
            {
                c_message.message("Selecciona un registro.", C_message.message_type.warning);
            }
            overlayForm.Dispose();
        }