Example #1
0
        public override bool Uncomment()
        {
            if (CommentChar == ChoChar.NUL)
            {
                return(false);
            }

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

                ResetCommentChar();
                if (_iniDocument != null)
                {
                    _iniDocument.Uncomment();
                }

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

                return(true);
            }

            return(false);
        }