Beispiel #1
0
 private static void displayAnnouncements()
 {
     Console.WriteLine("Announcements:");
     if (announcements == null)
     {
         announcements = client.GetAnnouncements();
     }
     for (int i = 0; i < announcements.Count; i++)
     {
         string id      = announcements[i].ID;
         string subject = announcements[i].Subject;
         string content = announcements[i].Content;
         Console.WriteLine("ID: {0}", id);
         Console.WriteLine("Subject: {0}", subject);
         Console.WriteLine("Content: {0}", content + Environment.NewLine);
     }
 }