示例#1
0
        public override bool Comment(char commentChar)
        {
            if (CommentChar != ChoChar.NUL)
            {
                return(false);
            }

            if (!OwnerDocument.OnNodeChanging(this, null, null, ChoIniNodeChangedAction.Comment))
            {
                OwnerDocument.Dirty = true;

                CommentChar = commentChar;
                if (_iniDocument != null)
                {
                    _iniDocument.Comment(commentChar);
                }

                OwnerDocument.OnNodeChanged(this, null, null, ChoIniNodeChangedAction.Comment);

                return(true);
            }

            return(false);
        }