public void EndCommand(List <GLine> command_result) { string[] stringarray_result = AsStringArrayResult(command_result); Debug.Assert(_window.AsForm().InvokeRequired); //この処理中に次のアクションがセットされることもある if (_currentAction.ReceiverThreadAction != null) { _currentAction.ReceiverThreadAction(stringarray_result); } else { _window.AsControl().Invoke(_currentAction.MainThreadAction, stringarray_result); } if (_actions.Count > 0) { ProcessNextAction(); } }