Example #1
0
        private void btnAlta_Click(object sender, EventArgs e)
        {
            frmAltaPersonas frmAltaPersona = new frmAltaPersonas();

            frmAltaPersona.ShowDialog();
            llenarGrilla();
        }
Example #2
0
 private void cmbPersona_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (activar)
     {
         if (((Persona)(cmbPersona.SelectedItem)).Apellido == "Nueva..")
         {
             frmAltaPersonas frmAltaPersona = new frmAltaPersonas();
             frmAltaPersona.ShowDialog();
             cmbPersona.DataSource    = cU.getPersonasSinUsu();
             cmbPersona.DisplayMember = "mostrar";
         }
         else
         {
             txtUsuario.Enabled = txtClave.Enabled = true;
         }
     }
 }
 private void btnAlta_Click(object sender, EventArgs e)
 {
     frmAltaPersonas frmAltaPersona = new frmAltaPersonas();
     frmAltaPersona.ShowDialog();
     llenarGrilla();
 }
        private void cmbPersona_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (activar)
            {

                if (((Persona)(cmbPersona.SelectedItem)).Apellido == "Nueva..")
                {
                    frmAltaPersonas frmAltaPersona = new frmAltaPersonas();
                    frmAltaPersona.ShowDialog();
                    cmbPersona.DataSource = cU.getPersonasSinUsu();
                    cmbPersona.DisplayMember = "mostrar";
                }
                else
                {
                    txtUsuario.Enabled = txtClave.Enabled = true;
                }
            }
        }