Property | Type | Description | |
---|---|---|---|
backup | bool | ||
manager |
Method | Description | |
---|---|---|
DocumentChanged ( ) : void |
Called whenever a document is created or loaded (or closed). Override to provide specific Forms handling when the document is changed.
|
|
FileCloseClick ( object sender, |
A handler for the File->Close command. Closes any currently open document (prompting the user to save it if modified). Call this method your form's 'OnClick()' handler.
|
|
FileExitClick ( object sender, |
A handler for the File->Exit command. Exits the application, closing any currently open document (prompting the user to save it if modified). Call this method your form's 'OnClick()' handler.
|
|
FileNewClick ( object sender, System e ) : void |
A handler for the File->New command. Closes any currently open document (prompting the user to save it if modified). Creates a new instance of the managed document type. Call this method your form's 'OnClick()' handler.
|
|
FileOpenClick ( object sender, System e ) : void |
A handler for the File->Open command. Uses the OpenFileDialog to select and open a file. Closes any currently open document (prompting the user to save it if modified). Call this method your form's 'OnClick()' handler.
|
|
FileSaveAsClick ( object sender, |
A handler for the File->Save As command. Prompts the user for a filename and path and saves the document to it. Call this method your form's 'OnClick()' handler.
|
|
FileSaveClick ( object sender, |
A handler for the File->Save command. Saves the currently open document - prompting for a filename if it is a new document. Call this method your form's 'OnClick()' handler.
|
|
SDIForm ( ) : System |
Default constructor - required to enable the Visual Editor for Forms in Visual Studio to work.
|
|
SDIForm ( |
Construct an SDIForm providing an instance of a document manager.
|
Method | Description | |
---|---|---|
canCloseDocument ( object sender, System e ) : bool |
A "helper" menu action to try to close the currently loaded file if there is one. The method will display a prompt to the user to save the file if modified.
|
|
loadDocument ( string filename ) : void |
Helper to load a document - triggers DocumentChanged().
|
Method | Description | |
---|---|---|
SDIForm_Load ( object sender, System e ) : void | ||
closeDocument ( ) : void |
Helper to close any currently open document - triggers DocumentChanged().
|
|
newDocument ( ) : void |
Helper to create a new document - triggers DocumentChanged().
|
|
saveDocument ( string filename ) : void |
Helper to save a document - triggers DocumentChanged().
|
public FileCloseClick ( object sender, |
||
sender | object | the object that sent the event - e.g. menu item or tool bar button. |
e | Any additional arguments to the event. | |
return | void |
public FileExitClick ( object sender, |
||
sender | object | the object that sent the event - e.g. menu item or tool bar button. |
e | Any additional arguments to the event. | |
return | void |
public FileNewClick ( object sender, System e ) : void | ||
sender | object | the object that sent the event - e.g. menu item or tool bar button. |
e | System | Any additional arguments to the event. |
return | void |
public FileOpenClick ( object sender, System e ) : void | ||
sender | object | the object that sent the event - e.g. menu item or tool bar button. |
e | System | Any additional arguments to the event. |
return | void |
public FileSaveAsClick ( object sender, |
||
sender | object | the object that sent the event - e.g. menu item or tool bar button. |
e | Any additional arguments to the event. | |
return | void |
public FileSaveClick ( object sender, |
||
sender | object | the object that sent the event - e.g. menu item or tool bar button. |
e | Any additional arguments to the event. | |
return | void |
public SDIForm ( |
||
manager | the DocumentManager to be used by this form. | |
return | System |
protected canCloseDocument ( object sender, System e ) : bool | ||
sender | object | the object that sent the event - e.g. menu item or tool bar button. |
e | System | Any additional arguments to the event. |
return | bool |
protected loadDocument ( string filename ) : void | ||
filename | string | |
return | void |