Click or drag to resize

Notification Class

A Notification instance can be used to inform the user about various events. For a Notification instance to be displayed in Rhino, it must be added to the NotificationCenter. When added, it will be displayed in the Notifications panel in Rhino. A Notification contains 1 to 3 buttons that are automatically wired to its ButtonClicked Action if it is not null. The buttons are displayed when the Notification is shown modally by either the user clicking on a particular notification in the Notifications panel, or by programatically showing it using ShowModal. Currently, only process-wide notifications are supported; document specific notifications are not possible. Notification instances contain metadata that can be added, modified, or removed during its life. The metadata is important for LINQ queries and other patterns. For example, a particular action may require that multiple notifications be modified. Thus, a LINQ query can be performed on the NotificationCenter using metadata to retrieve related Notification objects and modify them as a batch. Notification objects implement IAssemblyRestrictedObject. By default, a Notification can only be edited by the assembly that modified it. Cross-assembly editing is also possible if the allowed assemblies are specified explicitly. Notification objects are not thread-safe and should only be manipulated in UI thread.
Inheritance Hierarchy

Namespace:  Rhino.Runtime.Notifications
Assembly:  RhinoCommon (in RhinoCommon.dll)
public class Notification : INotifyPropertyChanged, 

The Notification type exposes the following members.

Public propertyAllowedAssemblies
The assemblies that can modify this instance.
Public propertyAlternateButtonTitle
The localized title of the Alternate button.
Public propertyButtonClicked
An Action that will be invoked whenever a button for the notification is clicked or the notification is closed.
Public propertyCancelButtonTitle
The localized title of the Cancel button.
Public propertyConfirmButtonTitle
The localized title of the Confirm button.
Public propertyDateUpdated
The date the notification was last modified.
Public propertyDescription
The description of the notification. The description is displayed in the Notifications panel in Rhino.
Public propertyItem
Gets or sets metadata for this instance.
Public propertyMessage
The message of the notification. The message is shown only when the instance is displayed modally. It should contain details about the notification.
Public propertyMetadataCopy
A copy of all the metadata for this class.
Public propertySeverityLevel
The severity of the notification. Changing the severity of the notification may change the way Rhino chooses to display the Notifications panel.
Public propertyShowEventId
An field used by Rhino for displaying notifications. Not intended for public use.
Public propertyTitle
The title of the notification. The title is displayed when the notification is displayed modally in Rhino.
Public methodEditableByAssembly
Determines whether an assembly can modify the instance.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodHideModal
Tells Rhino to hide the notification if it is being currently shown as a modal.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveMetadata
Removes metadata from this instance.
Public methodShowModal
Tells Rhino to display the notification modally.
Public methodToString
Returns a readable string representation of the instance.
(Overrides ObjectToString.)
Public eventPropertyChanged
Triggered whenever a visible property of the instance changes.
Version Information

Rhino for Windows

Supported in: 6.2
See Also