public void SetEmptyConsumerTickCount(string machineID, int noOfTicks) { try { factoryService.setEmptyConsumerTickCount(sessionID, machineID, noOfTicks); } catch (EndpointNotFoundException) { ClientServerEvent(this, new ClientServerEventArgs()); } catch (FaultException) { ClientServerEvent(this, new ClientServerEventArgs("Fehler auf Server")); } }