Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Przegladaj ()
- {
- WypiszBanki();
- Console.WriteLine("podaj nazwe banku którego klientów chcesz przeglądać:");
- string n = Console.ReadLine();
- if (Banki.Contains(n))
- {
- Bank b = (Bank)Banki[n];
- b.WypiszKlientów();
- Console.WriteLine("podaj pesel klienta którego konta chcesz przeglądać");
- string p = Console.ReadLine();
- if (b.GetOsoby().Contains(p))
- {
- Osoba o = b.GetOsoba(p);
- o.WypiszKonta();
- Console.WriteLine("podaj numer konta którego karty chcesz przegladac");
- int nr = Convert.ToInt32(Console.ReadLine());
- if (o.GetKonta().Contains(nr))
- {
- Konto c = o.GetKonto(nr);
- c.WypiszKarty();
- }
- else Console.WriteLine("Brak podanego Konta");
- }
- else Console.WriteLine("Brak podanej osoby");
- }
- else
- { Console.WriteLine("brak podanego banku");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement