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

            frmDetailContrat.ShowDialog();
            dgvContrats.DataSource = null;
            dgvContrats.DataSource = conSommaireContrat.Tout().ToSortableBindingList();
        }
예제 #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();
        }