Beispiel #1
0
 public void SetEnabledPort(Port port, OnOff enabled)
 {
     //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
     {
         m_Frames_02.WriteToolEnabled(enabled);
         m_Frames_02.ReadToolEnabled();
     }
 }