C# Class BF2Statistics.Notify

Notify is a class that queues and shows Alert "toast" messages to the user, which spawn just above the task bar, in the lower right hand side of the screen
Afficher le fichier Open project: BF2Statistics/ControlCenter Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultDockTime int

Protected Properties

Свойство Type Description
Alerts Queue

Méthodes publiques

Méthode Description
Show ( string Message, string SubText, AlertType Type = AlertType.Info ) : void

Shows a custom Toast message with the specified icon

Méthodes protégées

Méthode Description
CheckAlerts ( ) : void

This method is called internally to determine if a new alert can be shown from the alert queue.

Private Methods

Méthode Description
AlertClosed ( object sender, EventArgs e ) : void

Event is fired whenever a Toast alert is closed. This method is responsible for displaying the next queued alert message

Notify ( ) : System

Static Constructor

Method Details

CheckAlerts() protected static méthode

This method is called internally to determine if a new alert can be shown from the alert queue.
protected static CheckAlerts ( ) : void
Résultat void

Show() public static méthode

Shows a custom Toast message with the specified icon
public static Show ( string Message, string SubText, AlertType Type = AlertType.Info ) : void
Message string
SubText string
Type AlertType
Résultat void

Property Details

Alerts protected_oe static_oe property

A queue of alerts to display. Alerts are added here to prevent too many alerts from showing at once
protected static Queue Alerts
Résultat Queue

DefaultDockTime public_oe static_oe property

Gets or Sets the default dock time of an alert, if one is not specified in the ShowAlert method
public static int DefaultDockTime
Résultat int