private void ConnectToServer() { try { _serviceClient = new OrderProcessing.Classes.ServiceClient().Initialise(); _serviceClient.ServiceNotificationHandler.NotifyClient += (message) => toolStripStatusLabel_Messages.Text = message; _connected = true; } catch (Exception ex) { _connected = false; } DisplayConnectionStatus(); }
public Product[] GetAllProducts(ServiceClient client) { return client.ProductQueryClient.All(); }
public Order[] GetAllOrders(ServiceClient client) { return client.OrderQueryClient.All(); }
public Employee[] GetAllEmployees(ServiceClient client) { return client.EmployeeQueryClient.All(); }
public Customer[] GetAllCustomers(ServiceClient client) { return client.CustomerQueryClient.All(); }