Пример #1
0
        private void btnNuevaPersona_Click(object sender, EventArgs e)
        {
            frmPersona persona = new frmPersona();

            persona.EditingObject = new Persona();
            persona.ShowDialog();
            FillDgv(PersonaDAL.searchPersonaNoParametro(txtBuscar.Text, 60));
        }
Пример #2
0
 private void txtBuscar_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == Convert.ToChar(Keys.Enter))
     {
         e.Handled = true;
         if (txtBuscar.Text != lastParam)
         {
             FillDgv(PersonaDAL.searchPersonaNoParametro(txtBuscar.Text, 60));
         }
         else
         {
             btnSeleccionar.PerformClick();
         }
     }
 }
Пример #3
0
        private void frmBuscarPersona_Load(object sender, EventArgs e)
        {
            try
            {
                FillDgv(PersonaDAL.searchPersonaNoParametro(txtBuscar.Text, 60));
            }
            catch (Exception ex)
            {
                string folderName = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\Errores_" + Assembly.GetExecutingAssembly().GetName().Name + "_V_" + Assembly.GetExecutingAssembly().GetName().Version.ToString();
                string fileName   = "Exeptions_" + Name + ".txt";

                Validation.FormManager frmManager = new Validation.FormManager();
                frmManager.writeException(folderName, fileName, ex, "Ha ocurrido un error al intentar cargar la información de este control");
                MessageBox.Show("Ha ocurrido un error al intentar cargar la información de este control, por favor comuniquese con el desarrollador al correo [email protected]", "Error fatal", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #4
0
 private void icUpdate_Click(object sender, EventArgs e)
 {
     FillDgv(PersonaDAL.searchPersonaNoParametro(Validation.Validation.Val_Injection(txtBuscar.Text), 60));
 }