Esempio n. 1
0
 private void buttonModificar_Click(object sender, EventArgs e)
 {
     if (grid_clientes.DataSource != null && grid_clientes.SelectedRows.Count > 0)
     {
         foreach (DataGridViewRow row in grid_clientes.SelectedRows)
         {
             AddEditClientes modifForm = new AddEditClientes((Cliente)row.DataBoundItem);
             modifForm.ShowDialog();
         }
     }
 }
Esempio n. 2
0
        private void Agregar_Click(object sender, EventArgs e)
        {
            AddEditClientes agregarForm = new AddEditClientes();

            agregarForm.ShowDialog();
        }