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();
        }
Пример #2
0
 public Product[] GetAllProducts(ServiceClient client)
 {
     return client.ProductQueryClient.All();
 }
Пример #3
0
 public Order[] GetAllOrders(ServiceClient client)
 {
     return client.OrderQueryClient.All();
 }
Пример #4
0
 public Employee[] GetAllEmployees(ServiceClient client)
 {
     return client.EmployeeQueryClient.All();
 }
Пример #5
0
 public Customer[] GetAllCustomers(ServiceClient client)
 {
     return client.CustomerQueryClient.All();
 }