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
Afficher le fichier Open project: 2014-sed-team3/term-project

Protected Properties

Свойство Type Description
m_sDialogTitle String

Méthodes publiques

Méthode Description
AssertValid ( ) : void
SaveImageFileDialog ( String sInitialDirectory, String sInitialFileName ) : System

Initializes a new instance of the SaveImageFileDialog class.

ShowDialogAndSaveImage ( Image oImage ) : DialogResult

Méthodes protégées

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

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

GetDialogTitle() protected méthode

protected GetDialogTitle ( Object oObjectBeingSaved ) : String
oObjectBeingSaved Object
Résultat String

GetFilter() protected méthode

protected GetFilter ( ) : String
Résultat String

GetInitialFilterIndex() protected méthode

protected GetInitialFilterIndex ( ) : Int32
Résultat System.Int32

SaveImageFileDialog() public méthode

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. ///
Résultat System

SaveObject() protected méthode

protected SaveObject ( Object oObject, String sFileName ) : void
oObject Object
sFileName String
Résultat void

ShowDialogAndSaveImage() public méthode

public ShowDialogAndSaveImage ( Image oImage ) : DialogResult
oImage Image
Résultat DialogResult

Property Details

m_sDialogTitle protected_oe property

protected String m_sDialogTitle
Résultat String