Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     persona = new Persona();
     VentanaPersonas ventana = new VentanaPersonas();
     ventana.AgregarPersona(persona);
     DialogResult resultado = ventana.ShowDialog();
     if (resultado == DialogResult.OK)
     {
         iFachada.Create(persona);
     }
 }
Beispiel #2
0
 private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     DataGridViewRow row = dgvPersonas.CurrentRow;
     this.persona = this.iBinding.Single<Persona>(p => p.PersonaId == (int)row.Tag);
     VentanaPersonas ventana = new VentanaPersonas();
     ventana.ModificarPersona(persona);
     ventana.ShowDialog();
     if (ventana.DialogResult == DialogResult.OK)
     {
         iFachada.Update(persona);
     }
 }