Exemple #1
0
        private void add_phone_Click(object sender, EventArgs e)
        {
            ParentPhone p = new ParentPhone(CurrentAdulte);

            p.FormClosing += new FormClosingEventHandler(UpdateDataSource);
            p.Show();
        }
Exemple #2
0
        private void gvPhone_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow row = gvPhone.CurrentRow;

            if (row == null)
            {
                return;
            }

            ParentPhone p = new ParentPhone((Entities.Telephone)row.DataBoundItem);

            p.FormClosing += new FormClosingEventHandler(UpdateDataSource);
            p.Show();
        }