private void bttnEdit_Click(object sender, EventArgs e) { DataGridViewRow dgvr; dgvr = dgv_Clientes.CurrentRow; int id = Convert.ToInt32(dgv_Clientes.Rows[dgvr.Index].Cells[5].Value); WindowEdit windowEdit = new WindowEdit(); Clients clients = new Clients(); windowEdit.SelectClientID(clients.connextion, id); windowEdit.Show(); }
private void Edit_Click(object sender, RoutedEventArgs e) { WindowEdit edit = new WindowEdit(main1); edit.Show(); }