Beispiel #1
0
 static void PrintServerInfo(SchoolServer schoolServer)
 {
     Console.WriteLine("---------------");
     Console.WriteLine("Memory:{0,-3} Connection:{1,-4} OS:{2, -5} Feature:{3}",
                       schoolServer.Memory,
                       schoolServer.Connection,
                       schoolServer.OS,
                       schoolServer.Feature);
     for (int i = 0; i < schoolServer.Purpose.Count; i++)
     {
         Console.WriteLine(schoolServer.Purpose[i]);
     }
     Console.WriteLine("---------------");
 }
Beispiel #2
0
 public void Reset()
 {
     schoolServer = new SchoolServer();
     schoolServer.Purpose.Add("for teachers and students");
 }