Esempio n. 1
0
        public Banque(string fichier)
        {
            _nomFichier = fichier; // Save the file name to use in saving.

            using (StreamReader fichierLecture = new StreamReader(fichier))
            {
                for (int i = 0; i < NbComptes; i++)
                {
                    string ligne = fichierLecture.ReadLine();
                    _comptes[i] = new CompteBancaire(ligne);
                }
            }
        }
Esempio n. 2
0
        public void Retirer(string nom, double montant)
        {
            CompteBancaire compte = RechercherCompte(nom);

            compte.Retirer(montant);
        }
Esempio n. 3
0
        public void AfficherSolde(string nom)
        {
            CompteBancaire compte = RechercherCompte(nom);

            compte.AfficherSolde();
        }