Example #1
0
        public virtual void Report(string command)
        {
            var toyRobotEventArgs = new ToyRobotCommandEventArgs
            {
                CommandName = command,
            };

            OnCommandCompletedEvent(toyRobotEventArgs);
        }
Example #2
0
        private void OnCommandCompletedEvent(ToyRobotCommandEventArgs e)
        {
            var handler = CommandCompletedEvent;

            handler?.Invoke(this, e);
        }