public CancelButton(PageEditorItem doc) { m_doc = doc; Text = Resources.Strings.PageEditor_CommentButtons_Cancel; SetIconFromBitmap(Resources.Images.PageEditor_CommentButtons_Cancel); VisibleCondition = doc.m_CommentBeingEditedCondition; }
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; }
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); }