Click or drag to resize

RAYLASE.Marker.GUI Namespaces

Namespaces
NamespaceDescription
RAYLASE.Marker.GUI.Common 
RAYLASE.Marker.GUI.Common.Controls 
RAYLASE.Marker.GUI.Common.Events 
RAYLASE.Marker.GUI.Common.Helpers 
RAYLASE.Marker.GUI.Common.Interactivity 
RAYLASE.Marker.GUI.Common.Interactivity.PopupWindows 
RAYLASE.Marker.GUI.Common.JobItems 
RAYLASE.Marker.GUI.Common.Mementos 
RAYLASE.Marker.GUI.Common.Permission 
RAYLASE.Marker.GUI.Common.Services 
RAYLASE.Marker.GUI.Common.Views 
RAYLASE.Marker.GUI.Events The classes in this namespace are derived from the class PubSubEvent, which is provided by the Prism framework. Prism uses its so-called Event Aggregator to allow communication between modules by sending events. See section 3.5 Writing Custom UI Plug-ins and Using Events for details.

Some events need one or more parameters, which are to be handed over to the Publish() method or the receiving callback method. These parameters are documented as in the following samples:

  • RecentDocumentsChangedEvent – This event needs a string as parameter, the documentation is of the form "type" "variableName":

    - string filePath

    One can subscribe for receiving this event and get the data with a callback method in this way:

    C#
    ...
    eventAggregator.GetEvent<RecentDocumentsChangedEvent>().Subscribe( OnRecentDocChanged );
    ...
    private void OnRecentDocChanged(string filePath)
    {
        ...
    }
  • SaveJobEvent – This event needs three parameters; multiple parameters must always be handed over as a single (named or unnamed) tuple; the documentation is a list of "type" "ElementName" pairs:

    - JobDefinition JobDefinition

    - string FilePath

    - bool NeedConfirmation

    The event can be triggered e. g. with the statement

    C#
    eventAggregator.GetEvent<SaveJobEvent>().Publish( ( jobDef, "C:\tmp\test.rg", false ) );

    jobDef needs to be of type JobDefinition.

RAYLASE.Marker.GUI.Wrapper