Пример #1
0
 public void LedPier(ASCOM.DeviceInterface.PierSide sideOfPier)
 {
     try
     {
         this.Invoke((MethodInvoker) delegate
         {
             if (sideOfPier == ASCOM.DeviceInterface.PierSide.pierEast)
             {
                 ledPierEast.Status  = TrafficLight.Green;
                 ledPierEast.Visible = true;
                 ledPierWest.Visible = false;
             }
             else
             {
                 ledPierWest.Status  = TrafficLight.Red;
                 ledPierWest.Visible = true;
                 ledPierEast.Visible = false;
             }
         });
     }
     catch
     { }
 }
        public ActionResult <PierSideResponse> Put(int ClientID, int ClientTransactionID, [FromForm] ASCOM.DeviceInterface.PierSide SideOfPier)
        {
            Program.TraceLogger.LogMessage(methodName + " Put", "");
            Program.Simulator.SideOfPier = SideOfPier;

            return(new PierSideResponse(ClientTransactionID, ClientID, SideOfPier));
        }