Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Usun ()
- {
- Console.WriteLine("Co chcesz usunac?\n\n");
- Console.WriteLine("[1]Bank \n");
- Console.WriteLine("[2] Firme\n");
- Console.WriteLine("Wybor:");
- switch (Console.Read())
- {
- case 1:
- {
- Console.WriteLine("Podaj nazwe banku ktory chcesz usunac\n");
- string nazwa = Console.ReadLine();
- Bank b = (Bank)Banki[nazwa];
- b.SetStatus(false);
- Banki[nazwa] =(Bank) b;
- }
- break;
- case 2:
- {
- Console.WriteLine("\nPodaj krs firmy ktora chcesz usunac:");
- string krs = Console.ReadLine();
- Firma f = (Firma)Firmy[krs];
- f.SetStatus(false);
- Firmy[krs]= (Firma) f;
- }
- break;
- default:
- Console.WriteLine("Brak podanej opcji");
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement