C# Class CDP4SiteDirectory.ViewModels.DomainOfExpertiseBrowserViewModel

represents a view-model for the DomainOfExpertises in a SiteDirectory
Inheritance: BrowserViewModelBase, IPanelViewModel
Show file Open project: RHEAGROUP/COMET-IME-Community-Edition Class Usage Examples

Public Methods

Method Description
ComputePermission ( ) : void

Compute the permission for the commands

DomainOfExpertiseBrowserViewModel ( ISession session, siteDir, IThingDialogNavigationService thingDialogNavigationService, IPanelNavigationService panelNavigationService, IDialogNavigationService dialogNavigationService, IPluginSettingsService pluginSettingsService ) : System

Initializes a new instance of the DomainOfExpertiseBrowserViewModel class

PopulateContextMenu ( ) : void

Populate the context menu

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

InitializeCommands ( ) : void

Initialize the ReactiveCommands of the current view-model

ObjectChangeEventHandler ( ObjectChangedEvent objectChange ) : void

The ObjectChangedEvent event-handler

Private Methods

Method Description
AddDomainOfExpertise ( DomainOfExpertise domainOfExpertise ) : void

Add a new row that represents a DomainOfExpertise to the list of DomainOfExpertise.

ComputeDomains ( ) : void

computes the domain rows to add

RemoveDomainOfExpertise ( DomainOfExpertise domainOfExpertise ) : void

Remove a row representing a DomainOfExpertise

Method Details

ComputePermission() public method

Compute the permission for the commands
public ComputePermission ( ) : void
return void

Dispose() protected method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool /// a value indicating whether the class is being disposed of ///
return void

DomainOfExpertiseBrowserViewModel() public method

Initializes a new instance of the DomainOfExpertiseBrowserViewModel class
public DomainOfExpertiseBrowserViewModel ( ISession session, siteDir, IThingDialogNavigationService thingDialogNavigationService, IPanelNavigationService panelNavigationService, IDialogNavigationService dialogNavigationService, IPluginSettingsService pluginSettingsService ) : System
session ISession The containing the given
siteDir The containing the data of this browser
thingDialogNavigationService IThingDialogNavigationService /// The that allows to navigate to dialog view models ///
panelNavigationService IPanelNavigationService The /// The that allows to navigate to Panels ///
dialogNavigationService IDialogNavigationService The
pluginSettingsService IPluginSettingsService /// The used to read and write plugin setting files. ///
return System

InitializeCommands() protected method

Initialize the ReactiveCommands of the current view-model
protected InitializeCommands ( ) : void
return void

ObjectChangeEventHandler() protected method

The ObjectChangedEvent event-handler
protected ObjectChangeEventHandler ( ObjectChangedEvent objectChange ) : void
objectChange ObjectChangedEvent The
return void

PopulateContextMenu() public method

Populate the context menu
public PopulateContextMenu ( ) : void
return void