public MainForm() { InitializeComponent(); //CedacriInMemoryDataSource ds = new CedacriInMemoryDataSource(); //CedacriWebServiceDataSource ds = new CedacriWebServiceDataSource(); ds = new CedacriInMemoryDataSource(); List <Client> clientList = ds.GetAllClients(); foreach (Client cli in clientList) { this.listBox1.Items.Add(cli.FirstName + " " + cli.LastName); } }
public HomeController() { ds = new CedacriInMemoryDataSource(); client.BaseAddress = new Uri("http://localhost:6249/"); }