internal CodeView(IDocument document, ICodeProject codeProject, IMessageDisplayService messageDisplayService, IViewService viewService, CodeOptionsModel codeOptionsModel, Microsoft.Expression.Framework.UserInterface.IWindowService windowService) : base(document) { Application.Current.Activated += new EventHandler(this.Application_Activated); this.codeDocument = (CodeDocument)document; this.messageDisplayService = messageDisplayService; this.viewService = viewService; this.codeOptionsModel = codeOptionsModel; this.actiproEditor = new ActiproEditor(this.codeDocument.Document, this.codeOptionsModel, this.messageDisplayService, this.viewService, codeProject, windowService); this.actiproEditor.CommandExecutionRequested += new EventHandler <CommandExecutionRequestedEventArgs>(this.ActiproEditor_CommandExecutionRequested); this.actiproEditor.EventInserted += new EventHandler <InsertEventHandlerEventArgs>(this.Editor_EventInserted); this.AddCommands(); }
protected override void Dispose(bool disposing) { if (disposing) { Application.Current.Activated -= new EventHandler(this.Application_Activated); if (this.actiproEditor != null) { this.actiproEditor.CommandExecutionRequested -= new EventHandler <CommandExecutionRequestedEventArgs>(this.ActiproEditor_CommandExecutionRequested); this.actiproEditor.EventInserted -= new EventHandler <InsertEventHandlerEventArgs>(this.Editor_EventInserted); this.actiproEditor.Dispose(); this.actiproEditor = (ActiproEditor)null; } } base.Dispose(disposing); }
public DeleteCommand(ActiproEditor editor) : base(editor) { }
public CopyCommand(ActiproEditor editor) : base(editor) { }
public SelectNoneCommand(ActiproEditor editor) : base(editor) { }
public PasteCommand(ActiproEditor editor) : base(editor) { }
public SelectAllCommand(ActiproEditor editor) : base(editor) { }