C# Class PropertyGrid.MessageService

Afficher le fichier Open project: modesto/monoreports

Private Properties

Свойство Type Description
CenterWindow void
GetDefaultParent Gtk.Window
GetTextResponse string

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static AskQuestion ( QuestionMessage message ) : AlertButton
message QuestionMessage
Résultat AlertButton

AskQuestion() public static méthode

public static AskQuestion ( string primaryText ) : AlertButton
primaryText string
Résultat AlertButton

AskQuestion() public static méthode

public static AskQuestion ( string primaryText, int defaultButton ) : AlertButton
primaryText string
defaultButton int
Résultat AlertButton

AskQuestion() public static méthode

public static AskQuestion ( string primaryText, string secondaryText ) : AlertButton
primaryText string
secondaryText string
Résultat AlertButton

AskQuestion() public static méthode

public static AskQuestion ( string primaryText, string secondaryText, int defaultButton ) : AlertButton
primaryText string
secondaryText string
defaultButton int
Résultat AlertButton

Confirm() public static méthode

public static Confirm ( ConfirmationMessage message ) : bool
message ConfirmationMessage
Résultat bool

Confirm() public static méthode

public static Confirm ( string primaryText, AlertButton button ) : bool
primaryText string
button AlertButton
Résultat bool

Confirm() public static méthode

public static Confirm ( string primaryText, AlertButton button, bool confirmIsDefault ) : bool
primaryText string
button AlertButton
confirmIsDefault bool
Résultat bool

Confirm() public static méthode

public static Confirm ( string primaryText, string secondaryText, AlertButton button ) : bool
primaryText string
secondaryText string
button AlertButton
Résultat bool

Confirm() public static méthode

public static Confirm ( string primaryText, string secondaryText, AlertButton button, bool confirmIsDefault ) : bool
primaryText string
secondaryText string
button AlertButton
confirmIsDefault bool
Résultat bool

GenericAlert() public static méthode

public static GenericAlert ( GenericMessage message ) : AlertButton
message GenericMessage
Résultat AlertButton

GenericAlert() public static méthode

public static GenericAlert ( string icon, string primaryText, string secondaryText ) : AlertButton
icon string
primaryText string
secondaryText string
Résultat AlertButton

GenericAlert() public static méthode

public static GenericAlert ( string icon, string primaryText, string secondaryText, int defaultButton ) : AlertButton
icon string
primaryText string
secondaryText string
defaultButton int
Résultat AlertButton

GetDefaultModalParent() public static méthode

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

GetPassword() public static méthode

public static GetPassword ( string question, string caption ) : string
question string
caption string
Résultat string

GetTextResponse() public static méthode

public static GetTextResponse ( string question, string caption, string initialValue ) : string
question string
caption string
initialValue string
Résultat string

PlaceDialog() public static méthode

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
Résultat void

RunCustomDialog() public static méthode

public static RunCustomDialog ( Gtk dialog ) : int
dialog Gtk
Résultat int

RunCustomDialog() public static méthode

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
Résultat int

ShowCustomDialog() public static méthode

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

ShowCustomDialog() public static méthode

public static ShowCustomDialog ( Gtk dialog, Gtk.Window parent ) : int
dialog Gtk
parent Gtk.Window
Résultat int

ShowError() public static méthode

public static ShowError ( Gtk parent, string primaryText ) : void
parent Gtk
primaryText string
Résultat void

ShowError() public static méthode

public static ShowError ( Gtk parent, string primaryText, string secondaryText ) : void
parent Gtk
primaryText string
secondaryText string
Résultat void

ShowError() public static méthode

public static ShowError ( string primaryText ) : void
primaryText string
Résultat void

ShowError() public static méthode

public static ShowError ( string primaryText, string secondaryText ) : void
primaryText string
secondaryText string
Résultat void

ShowException() public static méthode

public static ShowException ( Exception e ) : void
e System.Exception
Résultat void

ShowException() public static méthode

public static ShowException ( Exception e, string primaryText ) : void
e System.Exception
primaryText string
Résultat void

ShowException() public static méthode

public static ShowException ( Gtk parent, Exception e ) : void
parent Gtk
e System.Exception
Résultat void

ShowException() public static méthode

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

ShowMessage() public static méthode

public static ShowMessage ( Gtk parent, string primaryText ) : void
parent Gtk
primaryText string
Résultat void

ShowMessage() public static méthode

public static ShowMessage ( Gtk parent, string primaryText, string secondaryText ) : void
parent Gtk
primaryText string
secondaryText string
Résultat void

ShowMessage() public static méthode

public static ShowMessage ( string primaryText ) : void
primaryText string
Résultat void

ShowMessage() public static méthode

public static ShowMessage ( string primaryText, string secondaryText ) : void
primaryText string
secondaryText string
Résultat void

ShowWarning() public static méthode

public static ShowWarning ( Gtk parent, string primaryText ) : void
parent Gtk
primaryText string
Résultat void

ShowWarning() public static méthode

public static ShowWarning ( Gtk parent, string primaryText, string secondaryText ) : void
parent Gtk
primaryText string
secondaryText string
Résultat void

ShowWarning() public static méthode

public static ShowWarning ( string primaryText ) : void
primaryText string
Résultat void

ShowWarning() public static méthode

public static ShowWarning ( string primaryText, string secondaryText ) : void
primaryText string
secondaryText string
Résultat void