Пример #1
0
 void controlconnection_StateChanged(CommunicationEndpoint source, string state)
 {
     if (source is TCPCommunicationEndPoint)
     {
         if (source.commType == CommunicationEndpoint.Communicationtype.Command)
         {
             if (state == "Connected")
             {
                 UAVCommons.Commands.GetParameters getcmd = new UAVCommons.Commands.GetParameters();
                 SendCommand(getcmd);
             }
         }
     }
 }
Пример #2
0
 void controlconnection_StateChanged(CommunicationEndpoint source, string state)
 {
     if (source is TCPCommunicationEndPoint)
     {
         if (source.commType == CommunicationEndpoint.Communicationtype.Command)
         {
             if (state == "Connected"){
             UAVCommons.Commands.GetParameters getcmd = new UAVCommons.Commands.GetParameters();
             SendCommand(getcmd);
             }
         }
     }
 }