Example #1
0
 private void TxtCI_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == Convert.ToChar(Keys.Enter))
     {
         ControlllerRHSMP001 controler = new ControlllerRHSMP001();
         person = controler.GetPersona(txtCI.Text, conection);
         MostrarPersonasSeleccionadas(person);
         txtCI.Clear();
     }
 }
Example #2
0
 private void OnNavChange(object sender, Net4Sage.Controls.Lookup.LookupReturnEventArgs eventArgs)
 {
     person = eventArgs.ReturnValue as ThrPeople;
     try
     {
         if (person != null)
         {
             MostrarPersonasSeleccionadas(person);
         }
         else
         {
             int estado = 6;
             ControlllerRHSMP001 controler = new ControlllerRHSMP001();
             person = controler.GetPersona(txtCI.Text, conection);
             MostrarPersonasSeleccionadas(person);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error al cargar los datos.", "Sage MAS 500", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }