예제 #1
0
 public void SetPortToolLength(Port port, CLength length)
 {
     //Check port
     if ((int)port >= NumPorts || (int)port < 0)
     {
         if (UserErrorEvent != null)
         {
             UserErrorEvent(UUID, new Cerror(Cerror.cErrorCodes.PORT_NOT_IN_RANGE, "Port not in range."));
         }
     }
     else
     {
         //decimas de milimetro
         m_Frames_02.WriteLength(System.Convert.ToUInt16((ushort)(length.ToMillimeters() * 10)));
         m_Frames_02.ReadLength();
     }
 }