Beispiel #1
0
 public CancelButton(PageEditorItem doc)
 {
     m_doc = doc;
     Text  = Resources.Strings.PageEditor_CommentButtons_Cancel;
     SetIconFromBitmap(Resources.Images.PageEditor_CommentButtons_Cancel);
     VisibleCondition = doc.m_CommentBeingEditedCondition;
 }
Beispiel #2
0
 public MarkdownButton(PageEditorItem doc)
 {
     m_doc   = doc;
     Text    = Resources.Strings.PageEditor_CommentButtons_Markdown;
     ToolTip = Resources.Strings.PageEditor_CommentButtons_Markdown_ToolTip;
     SetIconFromBitmap(Resources.Images.PageEditor_CommentButtons_Markdown);
     VisibleCondition = doc.m_CommentBeingEditedCondition;
 }
Beispiel #3
0
        public PageEditor(PageItem pageItem)
        {
            if (pageItem == null)
            {
                throw new ArgumentNullException();
            }
            Name = Extensions.Workbench.Documents.PageEditor;

            m_pageItem   = pageItem;
            m_EditorRoot = new PageEditorItem(this, pageItem.Page);
            m_EditorRoot.UndoableAction += new UndoableActionHandler(EditorRoot_UndoableAction);
            m_EditorRoot.Edited         += new EditedHandler(EditorRoot_Edited);
            m_EditorRoot.ContextMenu     = extensionService.Sort(contextMenu);

            m_pageItem.PropertyChanged += new PropertyChangedEventHandler(m_pageItem_PropertyChanged);
            OnNodeChanged();

            solutionPad.Saving += new EventHandler(solutionPad_Saving);
        }