public void StartGooeyProgramming() { Log.DebugLog("entered"); using (MainLock.AcquireSharedUsing()) { m_currentCommand = null; m_listCommands = true; m_commandList.Clear(); m_syntaxErrors.Clear(); MyTerminalControls.Static.CustomControlGetter += CustomControlGetter; m_block.AppendingCustomInfo += m_block_AppendingCustomInfo; Commands = AutopilotTerminal.GetAutopilotCommands(m_block).ToString(); foreach (ACommand comm in ParseCommands(Commands)) { m_commandList.Add(comm); } if (m_syntaxErrors.Length != 0) { m_block.UpdateCustomInfo(); } m_block.RebuildControls(); } }
public AutopilotActionList GetActions() { using (MainLock.AcquireSharedUsing()) { if (!m_actionList.IsEmpty) { m_actionList.Reset(); return(m_actionList); } m_syntaxErrors.Clear(); Commands = AutopilotTerminal.GetAutopilotCommands(m_block).ToString(); List <ACommand> commands = new List <ACommand>(); GetActions(Commands, m_actionList); if (m_syntaxErrors.Length != 0) { m_block.UpdateCustomInfo(); } return(m_actionList); } }