C# Class Smrf.AppLib.SaveImageFileDialog

Represents a dialog box for saving an image file.
Call ShowDialogAndSaveImage() to allow the user to save an image in a format of his choice to a location of his choice.
Inheritance: SaveFileDialog2
Mostrar archivo Open project: 2014-sed-team3/term-project

Protected Properties

Property Type Description
m_sDialogTitle String

Public Methods

Method Description
AssertValid ( ) : void
SaveImageFileDialog ( String sInitialDirectory, String sInitialFileName ) : System

Initializes a new instance of the SaveImageFileDialog class.

ShowDialogAndSaveImage ( Image oImage ) : DialogResult

Protected Methods

Method Description
GetDialogTitle ( Object oObjectBeingSaved ) : String
GetFilter ( ) : String
GetInitialFilterIndex ( ) : Int32
SaveObject ( Object oObject, String sFileName ) : void

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

GetDialogTitle() protected method

protected GetDialogTitle ( Object oObjectBeingSaved ) : String
oObjectBeingSaved Object
return String

GetFilter() protected method

protected GetFilter ( ) : String
return String

GetInitialFilterIndex() protected method

protected GetInitialFilterIndex ( ) : Int32
return System.Int32

SaveImageFileDialog() public method

Initializes a new instance of the SaveImageFileDialog class.
public SaveImageFileDialog ( String sInitialDirectory, String sInitialFileName ) : System
sInitialDirectory String /// Initial directory the dialog will display. Use an empty string to let /// the dialog select an initial directory. ///
sInitialFileName String /// Initial file name. Can be a complete path, a path without an /// extension, a file name, or a file name without an extension. ///
return System

SaveObject() protected method

protected SaveObject ( Object oObject, String sFileName ) : void
oObject Object
sFileName String
return void

ShowDialogAndSaveImage() public method

public ShowDialogAndSaveImage ( Image oImage ) : DialogResult
oImage Image
return DialogResult

Property Details

m_sDialogTitle protected_oe property

protected String m_sDialogTitle
return String