Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public DeleteCommand(ActiproEditor editor)
     : base(editor)
 {
 }
Ejemplo n.º 4
0
 public CopyCommand(ActiproEditor editor)
     : base(editor)
 {
 }
Ejemplo n.º 5
0
 public SelectNoneCommand(ActiproEditor editor)
     : base(editor)
 {
 }
Ejemplo n.º 6
0
 public PasteCommand(ActiproEditor editor)
     : base(editor)
 {
 }
Ejemplo n.º 7
0
 public SelectAllCommand(ActiproEditor editor)
     : base(editor)
 {
 }