Ejemplo n.º 1
0
        //-----------------------BOTONES ABM--------------------------------//
        public void Btn_agregar_Click(object sender, EventArgs e)
        {
            FrmABMFecha frmABMFecha = new FrmABMFecha();

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