Beispiel #1
0
        private void btnAjouter_Click(object sender, EventArgs e)
        {
            var frmDetailContrat = new DetailContrat();

            frmDetailContrat.ShowDialog();
            dgvContrats.DataSource = null;
            dgvContrats.DataSource = conSommaireContrat.Tout().ToSortableBindingList();
        }
Beispiel #2
0
        private void btnDetail_Click(object sender, EventArgs e)
        {
            var frmDetailContrat = new DetailContrat(((Modele.vueSomContrat)dgvContrats.SelectedRows[0].DataBoundItem).noContrat);

            frmDetailContrat.ShowDialog();
            dgvContrats.DataSource = null;
            dgvContrats.DataSource = conSommaireContrat.Tout().ToSortableBindingList();
        }