コード例 #1
0
        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
ファイル: Query.cs プロジェクト: iliasashaikh/Orderprocessing
 public Product[] GetAllProducts(ServiceClient client)
 {
     return client.ProductQueryClient.All();
 }
コード例 #3
0
ファイル: Query.cs プロジェクト: iliasashaikh/Orderprocessing
 public Order[] GetAllOrders(ServiceClient client)
 {
     return client.OrderQueryClient.All();
 }
コード例 #4
0
ファイル: Query.cs プロジェクト: iliasashaikh/Orderprocessing
 public Employee[] GetAllEmployees(ServiceClient client)
 {
     return client.EmployeeQueryClient.All();
 }
コード例 #5
0
ファイル: Query.cs プロジェクト: iliasashaikh/Orderprocessing
 public Customer[] GetAllCustomers(ServiceClient client)
 {
     return client.CustomerQueryClient.All();
 }