/// <summary> /// Sur le double click sur une row /// </summary> private void gvList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow row = gvList.CurrentRow; if (row == null) { return; } m_Referent = new Referent((Entities.Referent)row.DataBoundItem); m_Referent.ReferentAdded += new EventHandler(UpdateDataSource); m_Referent.Show(); }
private void btnAdd_Click(object sender, EventArgs e) { m_Referent = new Referent(); m_Referent.FormClosing += new FormClosingEventHandler(UpdateDataSource); m_Referent.Show(); }