예제 #1
0
        //----------------------- Mettre à jour de l'IHM en fct de l'etat de Cp ----------------------
        public void MettreAJourLIHM()
        {
            txtName.Text    = cp.Name;
            txtCapital.Text = cp.Capital.ToString();
            lblScroll.Text  = cp.DureeEnMois.ToString();
            listBoxPeriodicite.SelectedItem = cp.Periodicite;
            lblMontant.Text = cp.MontanDRemboursement().ToString("N") + "€";

            //configure le scrollbar en fct de la periodicite
            lblScroll.Text = ChiffreDuree();

            //mise a jour des resultats
            lblNombreDRembours.Text = cp.NombreDRemboursement().ToString();
            lblTotal.Text           = cp.Total().ToString("N") + "€";
        }