示例#1
0
        public position getPosition(string itemID)
        {
            position p = factoryService.getMachinePosition(sessionID, itemID);

            if (p.x == -1 && p.y == -1)
            {
                return(null);
            }
            return(p);
        }
示例#2
0
 public position GetPosition(string instanceID)
 {
     try
     {
         position p = factoryService.getMachinePosition(sessionID, instanceID);
         if (p.x == -1 && p.y == -1)
         {
             return(null);
         }
         return(p);
     }
     catch (EndpointNotFoundException)
     {
         ClientServerEvent(this, new ClientServerEventArgs());
     }
     catch (FaultException)
     {
         ClientServerEvent(this, new ClientServerEventArgs("Fehler auf Server"));
     }
     return(null);
 }