ICaseManagerAll Method |
Namespace: EdaIntegrationContract
using EdaIntegrationContract; using EdaIntegrationContract.Case; class Sample { public static void Main() { var edaIntegration = new EdaIntegration().ConnectToExplore(); Console.WriteLine("Name Client Description"); Console.WriteLine("------------------------------ ------------------------- -------------------------"); foreach (ICaseListing caseListing in edaIntegration.Cases.All()) { Console.WriteLine("{0} {1} {2}", caseListing.Name.Substring(0, caseListing.Name.Length > 30 ? 30 : caseListing.Name.Length).PadRight(30), caseListing.Client.Substring(0, caseListing.Client.Length > 30 ? 30 : caseListing.Client.Length).PadRight(30), caseListing.Description.Substring(0, caseListing.Description.Length > 30 ? 30 : caseListing.Description.Length).PadRight(30) ); } } } /* This example produces the following results: Name Client Description ------------------------------ ------------------------- ------------------------- Case 1 Client 123 The first case Case 2 Client 456 The second case Case 3 Client 123 The third case */