Пример #1
0
        /// <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();
        }
Пример #2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     m_Referent              = new Referent();
     m_Referent.FormClosing += new FormClosingEventHandler(UpdateDataSource);
     m_Referent.Show();
 }