Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Presentation.Dialogs.DialogService Class Reference
Inheritance diagram for SiliconStudio.Presentation.Dialogs.DialogService:
SiliconStudio.Presentation.Services.IDialogService

Public Member Functions

 DialogService (Dispatcher dispatcher, Window parentWindow)
 
IFileOpenModalDialog CreateFileOpenModalDialog ()
 Creates a modal file open dialog. More...
 
IFolderOpenModalDialog CreateFolderOpenModalDialog ()
 Create a modal folder open dialog. More...
 
IFileSaveModalDialog CreateFileSaveModalDialog ()
 Creates a modal file save dialog. More...
 
MessageBoxResult ShowMessageBox (string message, string caption, MessageBoxButton button, MessageBoxImage image)
 Displays a modal message box. More...
 
void CloseCurrentWindow (bool?dialogResult=null)
 Attempts to close the current window. More...
 

Properties

Window ParentWindow [get, set]
 
- Properties inherited from SiliconStudio.Presentation.Services.IDialogService
Window ParentWindow [get]
 Gets the parent window handle. More...
 

Detailed Description

Definition at line 13 of file DialogService.cs.

Constructor & Destructor Documentation

SiliconStudio.Presentation.Dialogs.DialogService.DialogService ( Dispatcher  dispatcher,
Window  parentWindow 
)

Definition at line 17 of file DialogService.cs.

Member Function Documentation

void SiliconStudio.Presentation.Dialogs.DialogService.CloseCurrentWindow ( bool?  dialogResult = null)

Attempts to close the current window.

Parameters
dialogResulta nullable boolean indicating, if the current window behave like a dialog window, the result of the dialog invocation.

Implements SiliconStudio.Presentation.Services.IDialogService.

Definition at line 46 of file DialogService.cs.

IFileOpenModalDialog SiliconStudio.Presentation.Dialogs.DialogService.CreateFileOpenModalDialog ( )

Creates a modal file open dialog.

Returns
An instance of IFileOpenModalDialog.

Implements SiliconStudio.Presentation.Services.IDialogService.

Definition at line 26 of file DialogService.cs.

IFileSaveModalDialog SiliconStudio.Presentation.Dialogs.DialogService.CreateFileSaveModalDialog ( )

Creates a modal file save dialog.

Returns
An instance of IFileSaveModalDialog.

Implements SiliconStudio.Presentation.Services.IDialogService.

Definition at line 36 of file DialogService.cs.

IFolderOpenModalDialog SiliconStudio.Presentation.Dialogs.DialogService.CreateFolderOpenModalDialog ( )

Create a modal folder open dialog.

Returns
An instance of IFolderOpenModalDialog.

Implements SiliconStudio.Presentation.Services.IDialogService.

Definition at line 31 of file DialogService.cs.

MessageBoxResult SiliconStudio.Presentation.Dialogs.DialogService.ShowMessageBox ( string  message,
string  caption,
MessageBoxButton  buttons,
MessageBoxImage  image 
)

Displays a modal message box.

Parameters
messageThe text to display as message in the message box.
captionThe title of the message box
buttonsThe buttons to display in the message box.
imageThe image to display in the message box.
Returns
A MessageBoxResult value indicating which button the user pressed to close the window.

Implements SiliconStudio.Presentation.Services.IDialogService.

Definition at line 41 of file DialogService.cs.

Property Documentation

Window SiliconStudio.Presentation.Dialogs.DialogService.ParentWindow
getset

Definition at line 24 of file DialogService.cs.


The documentation for this class was generated from the following file: