Example #1
0
        private void Btn_agregar_Click(object sender, EventArgs e)
        {
            FrmABMJugador frmABMJugador = new FrmABMJugador();

            AddOwnedForm(frmABMJugador);
            frmABMJugador.ShowDialog();
        }
Example #2
0
 private void btn_editar_Click(object sender, EventArgs e)
 {
     if (dgvJugadores.CurrentRow != null)
     {
         FrmABMJugador frmABMJugador = new FrmABMJugador();
         AddOwnedForm(frmABMJugador);
         JugadorService.Selected = Int32.Parse(dgvJugadores.CurrentRow.Cells["id_col"].Value.ToString());
         frmABMJugador.DeterminarOperacion(FrmABMJugador.FormMode.update, JugadorService);
         frmABMJugador.ShowDialog();
     }
     else
     {
         MessageBox.Show("Primero debe seleccionar un registro!", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }