/// <summary>
        /// After command framework is implemented, this method should now be only
        /// called from a menu item (i.e. Ctrl + W). It should not be used as a
        /// way for any other code paths to convert nodes to code programmatically.
        /// For that we now have ConvertNodesToCodeInternal which takes in more
        /// configurable arguments.
        /// </summary>
        /// <param name="parameters">This is not used and should always be null,
        /// otherwise an ArgumentException will be thrown.</param>
        ///
        internal void NodeToCode(object parameters)
        {
            if (null != parameters) // See above for details of this exception.
            {
                const string message = "Internal error, argument must be null";
                throw new ArgumentException(message, "parameters");
            }

            Guid nodeID  = Guid.NewGuid();
            var  command = new DynamoViewModel.ConvertNodesToCodeCommand(nodeID);

            this.DynamoViewModel.ExecuteCommand(command);
        }
        /// <summary>
        /// After command framework is implemented, this method should now be only 
        /// called from a menu item (i.e. Ctrl + W). It should not be used as a 
        /// way for any other code paths to convert nodes to code programmatically. 
        /// For that we now have ConvertNodesToCodeInternal which takes in more 
        /// configurable arguments.
        /// </summary>
        /// <param name="parameters">This is not used and should always be null,
        /// otherwise an ArgumentException will be thrown.</param>
        /// 
        internal void NodeToCode(object parameters)
        {
            if (null != parameters) // See above for details of this exception.
            {
                const string message = "Internal error, argument must be null";
                throw new ArgumentException(message, "parameters");
            }

            Guid nodeID = Guid.NewGuid();
            var command = new DynamoViewModel.ConvertNodesToCodeCommand(nodeID);
            this.DynamoViewModel.ExecuteCommand(command);
        }