Beispiel #1
0
 public WDDocumentApp(NewFileDelegate onNewFile, OpenFileDelegate onOpenFile, SaveFileDelegate onSaveFile, DocumentUpdateDelegate onUpdate)
 {
     System.Diagnostics.Debug.Assert(onNewFile != null);
     this.onNewFile  = onNewFile;
     this.onOpenFile = onOpenFile;
     this.onSaveFile = onSaveFile;
     this.onUpdate   = onUpdate;
     Undo            = new UndoHandler <DOCTYPE>(delegate(DOCTYPE newDoc) { this._document = newDoc; });
 }
Beispiel #2
0
 public WDDocumentApp(NewFileDelegate onNewFile)
 {
     System.Diagnostics.Debug.Assert(onNewFile != null);
     this.onNewFile = onNewFile;
 }