A base class to manage the lifecycle of a Document by creating new, empty documents, Opening existing documents, tracking the modification state of documents and Saving documents. Extend this class to implement methods to handle specific document types.
Ejemplo n.º 1
0
 /// <summary>
 /// Construct an SDIForm providing an instance of a document manager.
 /// </summary>
 /// <param name="manager">the DocumentManager to be used by this form.</param>
 public SDIForm( DocumentManager manager )
 {
     this.manager = manager;
     this.Load += new EventHandler( SDIForm_Load );
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Construct an SDIForm providing an instance of a document manager.
 /// </summary>
 /// <param name="manager">the DocumentManager to be used by this form.</param>
 public SDIForm(DocumentManager manager)
 {
     this.manager = manager;
     this.Load   += new EventHandler(SDIForm_Load);
 }