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; }); }
public WDDocumentApp(NewFileDelegate onNewFile) { System.Diagnostics.Debug.Assert(onNewFile != null); this.onNewFile = onNewFile; }