C# Class PropertyGrid.MessageService

ファイルを表示 Open project: modesto/monoreports

Private Properties

Property Type Description
CenterWindow void
GetDefaultParent Gtk.Window
GetTextResponse string

Public Methods

Method Description
AskQuestion ( QuestionMessage message ) : AlertButton
AskQuestion ( string primaryText ) : AlertButton
AskQuestion ( string primaryText, int defaultButton ) : AlertButton
AskQuestion ( string primaryText, string secondaryText ) : AlertButton
AskQuestion ( string primaryText, string secondaryText, int defaultButton ) : AlertButton
Confirm ( ConfirmationMessage message ) : bool
Confirm ( string primaryText, AlertButton button ) : bool
Confirm ( string primaryText, AlertButton button, bool confirmIsDefault ) : bool
Confirm ( string primaryText, string secondaryText, AlertButton button ) : bool
Confirm ( string primaryText, string secondaryText, AlertButton button, bool confirmIsDefault ) : bool
GenericAlert ( GenericMessage message ) : AlertButton
GenericAlert ( string icon, string primaryText, string secondaryText ) : AlertButton
GenericAlert ( string icon, string primaryText, string secondaryText, int defaultButton ) : AlertButton
GetDefaultModalParent ( ) : Gtk.Window

Gets a default parent for modal dialogs.

GetPassword ( string question, string caption ) : string
GetTextResponse ( string question, string caption, string initialValue ) : string
PlaceDialog ( Gtk.Window child, Gtk.Window parent ) : void

Positions a dialog relative to its parent on platforms where default placement is known to be poor.

RunCustomDialog ( Gtk dialog ) : int
RunCustomDialog ( Gtk dialog, Gtk.Window parent ) : int

Places and runs a transient dialog. Does not destroy it, so values can be retrieved from its widgets.

ShowCustomDialog ( Gtk dialog ) : int

Places, runs and destroys a transient dialog.

ShowCustomDialog ( Gtk dialog, Gtk.Window parent ) : int
ShowError ( Gtk parent, string primaryText ) : void
ShowError ( Gtk parent, string primaryText, string secondaryText ) : void
ShowError ( string primaryText ) : void
ShowError ( string primaryText, string secondaryText ) : void
ShowException ( Exception e ) : void
ShowException ( Exception e, string primaryText ) : void
ShowException ( Gtk parent, Exception e ) : void
ShowException ( Gtk parent, Exception e, string primaryText ) : void
ShowMessage ( Gtk parent, string primaryText ) : void
ShowMessage ( Gtk parent, string primaryText, string secondaryText ) : void
ShowMessage ( string primaryText ) : void
ShowMessage ( string primaryText, string secondaryText ) : void
ShowWarning ( Gtk parent, string primaryText ) : void
ShowWarning ( Gtk parent, string primaryText, string secondaryText ) : void
ShowWarning ( string primaryText ) : void
ShowWarning ( string primaryText, string secondaryText ) : void

Private Methods

Method Description
CenterWindow ( Gtk.Window child, Gtk.Window parent ) : void

Centers a window relative to its parent.

GetDefaultParent ( Gtk.Window child ) : Gtk.Window
GetTextResponse ( string question, string caption, string initialValue, bool isPassword ) : string

Method Details

AskQuestion() public static method

public static AskQuestion ( QuestionMessage message ) : AlertButton
message QuestionMessage
return AlertButton

AskQuestion() public static method

public static AskQuestion ( string primaryText ) : AlertButton
primaryText string
return AlertButton

AskQuestion() public static method

public static AskQuestion ( string primaryText, int defaultButton ) : AlertButton
primaryText string
defaultButton int
return AlertButton

AskQuestion() public static method

public static AskQuestion ( string primaryText, string secondaryText ) : AlertButton
primaryText string
secondaryText string
return AlertButton

AskQuestion() public static method

public static AskQuestion ( string primaryText, string secondaryText, int defaultButton ) : AlertButton
primaryText string
secondaryText string
defaultButton int
return AlertButton

Confirm() public static method

public static Confirm ( ConfirmationMessage message ) : bool
message ConfirmationMessage
return bool

Confirm() public static method

public static Confirm ( string primaryText, AlertButton button ) : bool
primaryText string
button AlertButton
return bool

Confirm() public static method

public static Confirm ( string primaryText, AlertButton button, bool confirmIsDefault ) : bool
primaryText string
button AlertButton
confirmIsDefault bool
return bool

Confirm() public static method

public static Confirm ( string primaryText, string secondaryText, AlertButton button ) : bool
primaryText string
secondaryText string
button AlertButton
return bool

Confirm() public static method

public static Confirm ( string primaryText, string secondaryText, AlertButton button, bool confirmIsDefault ) : bool
primaryText string
secondaryText string
button AlertButton
confirmIsDefault bool
return bool

GenericAlert() public static method

public static GenericAlert ( GenericMessage message ) : AlertButton
message GenericMessage
return AlertButton

GenericAlert() public static method

public static GenericAlert ( string icon, string primaryText, string secondaryText ) : AlertButton
icon string
primaryText string
secondaryText string
return AlertButton

GenericAlert() public static method

public static GenericAlert ( string icon, string primaryText, string secondaryText, int defaultButton ) : AlertButton
icon string
primaryText string
secondaryText string
defaultButton int
return AlertButton

GetDefaultModalParent() public static method

Gets a default parent for modal dialogs.
public static GetDefaultModalParent ( ) : Gtk.Window
return Gtk.Window

GetPassword() public static method

public static GetPassword ( string question, string caption ) : string
question string
caption string
return string

GetTextResponse() public static method

public static GetTextResponse ( string question, string caption, string initialValue ) : string
question string
caption string
initialValue string
return string

PlaceDialog() public static method

Positions a dialog relative to its parent on platforms where default placement is known to be poor.
public static PlaceDialog ( Gtk.Window child, Gtk.Window parent ) : void
child Gtk.Window
parent Gtk.Window
return void

RunCustomDialog() public static method

public static RunCustomDialog ( Gtk dialog ) : int
dialog Gtk
return int

RunCustomDialog() public static method

Places and runs a transient dialog. Does not destroy it, so values can be retrieved from its widgets.
public static RunCustomDialog ( Gtk dialog, Gtk.Window parent ) : int
dialog Gtk
parent Gtk.Window
return int

ShowCustomDialog() public static method

Places, runs and destroys a transient dialog.
public static ShowCustomDialog ( Gtk dialog ) : int
dialog Gtk
return int

ShowCustomDialog() public static method

public static ShowCustomDialog ( Gtk dialog, Gtk.Window parent ) : int
dialog Gtk
parent Gtk.Window
return int

ShowError() public static method

public static ShowError ( Gtk parent, string primaryText ) : void
parent Gtk
primaryText string
return void

ShowError() public static method

public static ShowError ( Gtk parent, string primaryText, string secondaryText ) : void
parent Gtk
primaryText string
secondaryText string
return void

ShowError() public static method

public static ShowError ( string primaryText ) : void
primaryText string
return void

ShowError() public static method

public static ShowError ( string primaryText, string secondaryText ) : void
primaryText string
secondaryText string
return void

ShowException() public static method

public static ShowException ( Exception e ) : void
e System.Exception
return void

ShowException() public static method

public static ShowException ( Exception e, string primaryText ) : void
e System.Exception
primaryText string
return void

ShowException() public static method

public static ShowException ( Gtk parent, Exception e ) : void
parent Gtk
e System.Exception
return void

ShowException() public static method

public static ShowException ( Gtk parent, Exception e, string primaryText ) : void
parent Gtk
e System.Exception
primaryText string
return void

ShowMessage() public static method

public static ShowMessage ( Gtk parent, string primaryText ) : void
parent Gtk
primaryText string
return void

ShowMessage() public static method

public static ShowMessage ( Gtk parent, string primaryText, string secondaryText ) : void
parent Gtk
primaryText string
secondaryText string
return void

ShowMessage() public static method

public static ShowMessage ( string primaryText ) : void
primaryText string
return void

ShowMessage() public static method

public static ShowMessage ( string primaryText, string secondaryText ) : void
primaryText string
secondaryText string
return void

ShowWarning() public static method

public static ShowWarning ( Gtk parent, string primaryText ) : void
parent Gtk
primaryText string
return void

ShowWarning() public static method

public static ShowWarning ( Gtk parent, string primaryText, string secondaryText ) : void
parent Gtk
primaryText string
secondaryText string
return void

ShowWarning() public static method

public static ShowWarning ( string primaryText ) : void
primaryText string
return void

ShowWarning() public static method

public static ShowWarning ( string primaryText, string secondaryText ) : void
primaryText string
secondaryText string
return void