Exemple #1
0
        //-----------------------BOTONES ABM--------------------------------//
        public void Btn_agregar_Click(object sender, EventArgs e)
        {
            FrmABMTorneo frmABMTorneo = new FrmABMTorneo();

            AddOwnedForm(frmABMTorneo);
            frmABMTorneo.ShowDialog();
        }
Exemple #2
0
 public void Btn_editar_Click(object sender, EventArgs e)
 {
     if (dgw_torneo.CurrentRow != null)
     {
         FrmABMTorneo frmABMTorneo = new FrmABMTorneo();
         AddOwnedForm(frmABMTorneo);
         service.selected = Int32.Parse(dgw_torneo.CurrentRow.Cells["id_col"].Value.ToString());
         frmABMTorneo.DeterminarOperacion(FrmABMTorneo.FormMode.update, service);
         frmABMTorneo.ShowDialog();
     }
     else
     {
         MessageBox.Show("Primero debe seleccionar un registro!", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }