public void RefreshCashLists() { DivisionList = ServiceOperationClient.GetDivisionList(); EquipmentList = ServiceOperationClient.GetEquipmentList(); EquipmentGroupList = ServiceOperationClient.GetGroupList(); KEquipmentList = ServiceOperationClient.GetKEquipmentList(); UnitList = ServiceOperationClient.GetUnitList(); UserList = ServiceOperationClient.GetUserList(); }
/// <summary> /// Создать экземпляр клиента подключения к сервису /// </summary> /// <returns> /// Экземпляр клиента подключения к сервису /// </returns> public ServiceOperationClient CreateClientInstance() { var binding = new NetTcpBinding(); binding.MaxBufferPoolSize = int.MaxValue; binding.MaxReceivedMessageSize = int.MaxValue; binding.Security.Mode = SecurityMode.None; var serviceOperatorClient = new ServiceOperationClient(binding, new EndpointAddress(_serviceOperationAddress)); return(serviceOperatorClient); }