C# Class Habanero.Faces.Win.DialogUtilities

These utilities provide quick methods for retrieving information from a user dialog. For example: an open file name or select folder name dialog.
Show file Open project: Chillisoft/habanero.faces

Public Methods

Method Description
GetOpenFileName ( IWin32Window owner, string &fileName ) : bool

This method shows a dialog for the user to choose a file to open

GetOpenFileName ( IWin32Window owner, string &fileName, string defaultFileName ) : bool

This method shows a dialog for the user to choose a file to open

GetOpenFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription ) : bool

This method shows a dialog for the user to choose a file to open

GetOpenFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName ) : bool

This method shows a dialog for the user to choose a file to open

GetOpenFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title ) : bool

This method shows a dialog for the user to choose a file to open

GetOpenFileName ( string &fileName ) : bool

This method shows a dialog for the user to choose a file to open

GetOpenFileName ( string &fileName, string defaultFileName ) : bool

This method shows a dialog for the user to choose a file to open

GetOpenFileName ( string &fileName, string extension, string extensionDescription ) : bool

This method shows a dialog for the user to choose a file to open

GetOpenFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName ) : bool

This method shows a dialog for the user to choose a file to open

GetOpenFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName, string title ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( IWin32Window owner, string &fileName, string defaultFileName ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title, bool overwritePrompt ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title, bool overwritePrompt, bool createPrompt ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title, bool overwritePrompt, string initialDirectory ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( string &fileName ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( string &fileName, string defaultFileName ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( string &fileName, string extension, string extensionDescription ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName, string title ) : bool

This method shows a dialog for the user to choose a file to open

GetSaveFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName, string title, bool overwritePrompt ) : bool

This method shows a dialog for the user to choose a file to open

SelectFolderDialog ( IWin32Window owner, string &selectedPath ) : bool

This method shows a dialog for the user to choose a folder

SelectFolderDialog ( IWin32Window owner, string &selectedPath, string currentFolder ) : bool

This method shows a dialog for the user to choose a folder

SelectFolderDialog ( IWin32Window owner, string &selectedPath, string currentFolder, string description ) : bool

This method shows a dialog for the user to choose a folder

SelectFolderDialog ( string &selectedPath ) : bool

This method shows a dialog for the user to choose a folder

SelectFolderDialog ( string &selectedPath, string currentFolder ) : bool

This method shows a dialog for the user to choose a folder

SelectFolderDialog ( string &selectedPath, string currentFolder, string description ) : bool

This method shows a dialog for the user to choose a folder

Private Methods

Method Description
ShowFileDialog ( FileDialog openFileDialog, IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName ) : bool
ShowFileDialog ( FileDialog openFileDialog, IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string initialDirectory ) : bool

Method Details

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( IWin32Window owner, string &fileName ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
return bool

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( IWin32Window owner, string &fileName, string defaultFileName ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
defaultFileName string The default file to open
return bool

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
return bool

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
return bool

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
title string The title that will be displayed on the dialog
return bool

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( string &fileName ) : bool
fileName string The file that was selected by the user
return bool

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( string &fileName, string defaultFileName ) : bool
fileName string The file that was selected by the user
defaultFileName string The default file to open
return bool

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( string &fileName, string extension, string extensionDescription ) : bool
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
return bool

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName ) : bool
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
return bool

GetOpenFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetOpenFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName, string title ) : bool
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
title string The title that will be displayed on the dialog
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( IWin32Window owner, string &fileName, string defaultFileName ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
defaultFileName string The default file to open
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
title string The title that will be displayed on the dialog
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title, bool overwritePrompt ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
title string The title that will be displayed on the dialog
overwritePrompt bool Should the dialog prompt the user when the file will overwrite another file?
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title, bool overwritePrompt, bool createPrompt ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
title string The title that will be displayed on the dialog
overwritePrompt bool Should the dialog prompt the user when the file will overwrite another file?
createPrompt bool Should the dialog prompt the user when the file will be created?
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( IWin32Window owner, string &fileName, string extension, string extensionDescription, string defaultFileName, string title, bool overwritePrompt, string initialDirectory ) : bool
owner IWin32Window The owner window for the dialog
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
title string The title that will be displayed on the dialog
overwritePrompt bool Should the dialog prompt the user when the file will overwrite another file?
initialDirectory string The default directory to open in
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( string &fileName ) : bool
fileName string The file that was selected by the user
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( string &fileName, string defaultFileName ) : bool
fileName string The file that was selected by the user
defaultFileName string The default file to open
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( string &fileName, string extension, string extensionDescription ) : bool
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName ) : bool
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName, string title ) : bool
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
title string The title that will be displayed on the dialog
return bool

GetSaveFileName() public static method

This method shows a dialog for the user to choose a file to open
public static GetSaveFileName ( string &fileName, string extension, string extensionDescription, string defaultFileName, string title, bool overwritePrompt ) : bool
fileName string The file that was selected by the user
extension string The default file extension
extensionDescription string A description of the default file extension
defaultFileName string The default file to open
title string The title that will be displayed on the dialog
overwritePrompt bool Should the dialog prompt the user when the file will overwrite another file?
return bool

SelectFolderDialog() public static method

This method shows a dialog for the user to choose a folder
public static SelectFolderDialog ( IWin32Window owner, string &selectedPath ) : bool
owner IWin32Window The owner window for the dialog
selectedPath string The folder that was selected by the user
return bool

SelectFolderDialog() public static method

This method shows a dialog for the user to choose a folder
public static SelectFolderDialog ( IWin32Window owner, string &selectedPath, string currentFolder ) : bool
owner IWin32Window The owner window for the dialog
selectedPath string The folder that was selected by the user
currentFolder string The folder to start navigating from
return bool

SelectFolderDialog() public static method

This method shows a dialog for the user to choose a folder
public static SelectFolderDialog ( IWin32Window owner, string &selectedPath, string currentFolder, string description ) : bool
owner IWin32Window The owner window for the dialog
selectedPath string The folder that was selected by the user
currentFolder string The folder to start navigating from
description string The title of the dialog
return bool

SelectFolderDialog() public static method

This method shows a dialog for the user to choose a folder
public static SelectFolderDialog ( string &selectedPath ) : bool
selectedPath string The folder that was selected by the user
return bool

SelectFolderDialog() public static method

This method shows a dialog for the user to choose a folder
public static SelectFolderDialog ( string &selectedPath, string currentFolder ) : bool
selectedPath string The folder that was selected by the user
currentFolder string The folder to start navigating from
return bool

SelectFolderDialog() public static method

This method shows a dialog for the user to choose a folder
public static SelectFolderDialog ( string &selectedPath, string currentFolder, string description ) : bool
selectedPath string The folder that was selected by the user
currentFolder string The folder to start navigating from
description string The title of the dialog
return bool