예제 #1
0
        private void HandleAddChildOperation(List <string> operands)
        {
            if (operands.Count == 3)
            {
                var motherName = operands[0];
                var childName  = operands[1];
                if (Enum.TryParse <Gender>(operands[2], out var gender))
                {
                    _modelProcessor.AddChild(motherName, childName, gender);
                }

                Console.WriteLine("CHILD_ADDED");
            }
        }