예제 #1
0
        private void modificarButton_Click(object sender, EventArgs e)
        {
            Articulo modificar;

            modificar = (Articulo)dgvEliminar.CurrentRow.DataBoundItem;
            frmAgregar frmAgregar = new frmAgregar(modificar);

            frmAgregar.Text = "Modificar";
            frmAgregar.ShowDialog();
            RefreshDatos(dgvEliminar);
        }
예제 #2
0
 private void btnAgregar_Click(object sender, EventArgs e)
 {
     try
     {
         frmAgregar alta = new frmAgregar();
         alta.ShowDialog();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }