//==================================================================================================== // Gerer DataGridView /// <summary> /// AFFICHAGE DU DETAILS DU CLIENT SELECTIONNE /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dgvClients_CellClick(object sender, DataGridViewCellEventArgs e) { if (dgvClients.CurrentCell != null && dgvClients.CurrentCell.RowIndex >= 0) { if (dgvClients.CurrentCell.ColumnIndex == 4) { centre = new frmClient((Client)bsClient.Current); centre.MdiParent = frmMaintInfo.Main; centre.Show(); } } }
private void btnAjouterClient_Click(object sender, EventArgs e) { centre = new frmClient(); centre.MdiParent = frmMaintInfo.Main; centre.Show(); }