Esempio n. 1
0
        public override void ProcessSelection()
        {
            if (Word == null)
            {
                throw new NullReferenceException("Word can't be null");
            }

            base.ProcessSelection();
            Parent.ProcessSelection();
            Redactor.LoadElement(Word);
        }
Esempio n. 2
0
        public override void ProcessSelection()
        {
            if (Line == null)
            {
                throw new NullReferenceException("Line can't be null");
            }

            base.ProcessSelection();

            if (Redactor.Line != Line)
            {
                Redactor.LoadElement(Line);
            }
        }