Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using StudentManager.Operations;
- namespace StudentManager
- {
- class Program
- {
- static void Main(string[] args)
- {
- SelectOperation SelectOperation = new SelectOperation();
- ShowStudents ShowStudents = new ShowStudents();
- AddStudent AddStudent = new AddStudent();
- int operation = SelectOperation.Operation();
- switch(operation){
- case 1:
- int i = 1;
- string[] Students = ShowStudents.Students();
- foreach(string Student in Students)
- {
- Console.WriteLine("\t" + i + " " + Student);
- i++;
- }
- operation = SelectOperation.Operation();
- break;
- case 2:
- AddStudent.NewStudent();
- operation = SelectOperation.Operation();
- break;
- case 3:
- Console.WriteLine("Wybrałeś opcję 3!");
- break;
- case 4:
- Console.WriteLine("Wybrałeś opcję 4!");
- break;
- case 5:
- System.Windows.Application.Exit();
- break;
- default:
- Console.WriteLine("Nie ma takiej komendy!");
- operation = SelectOperation.Operation();
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement