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); } } } }
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); } } } }