Пример #1
0
 private void btnCrear_Click(object sender, EventArgs e)
 {
     BombaCrear frm = new BombaCrear();
     if (frm.ShowDialog() == DialogResult.OK)
     {
         CargarDatos();
         resultado = DialogResult.OK;
     }
 }
Пример #2
0
 private void btnEditar_Click(object sender, EventArgs e)
 {
     Bomba seleccion = (Bomba)gv.SelectedRows[0].DataBoundItem;
     BombaCrear frm = new BombaCrear(seleccion);
     if (frm.ShowDialog() == DialogResult.OK)
     {
         CargarDatos();
         this.DialogResult = DialogResult.OK;
     }
 }