Пример #1
0
 /// <summary>Called when [send commands command].</summary>
 private void OnSendCommandsCommand()
 {
     if (cm != null && AutoPilotText != "")
     {
         // Split by new lien
         string[] splitted = AutoPilotText.Split('\n');
         // Add each command to the queue
         foreach (string s in splitted)
         {
             SetCommand setCommand = new SetCommand(s.Trim(), true);
             cm.addCommand(setCommand);
         }
         // Make text box background white
         AutoPilotBackground = Brushes.White;
     }
 }