C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetOpenFileName() публичный статический Метод

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
Результат bool

GetOpenFileName() публичный статический Метод

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
Результат bool

GetOpenFileName() публичный статический Метод

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
Результат bool

GetOpenFileName() публичный статический Метод

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
Результат bool

GetOpenFileName() публичный статический Метод

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
Результат bool

GetOpenFileName() публичный статический Метод

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
Результат bool

GetOpenFileName() публичный статический Метод

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
Результат bool

GetOpenFileName() публичный статический Метод

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
Результат bool

GetOpenFileName() публичный статический Метод

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
Результат bool

GetOpenFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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?
Результат bool

GetSaveFileName() публичный статический Метод

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?
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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
Результат bool

GetSaveFileName() публичный статический Метод

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?
Результат bool

SelectFolderDialog() публичный статический Метод

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
Результат bool

SelectFolderDialog() публичный статический Метод

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
Результат bool

SelectFolderDialog() публичный статический Метод

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
Результат bool

SelectFolderDialog() публичный статический Метод

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
Результат bool

SelectFolderDialog() публичный статический Метод

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
Результат bool

SelectFolderDialog() публичный статический Метод

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
Результат bool