Table of Contents

Class ServiceViewModel

Namespace
Loehnert.Lisrt.Scripting.ServiceWindow.ViewModels
Assembly
Loehnert.Lisrt.Scripting.dll

The service view model for a script.

public class ServiceViewModel : ServiceViewModelBase, IViewAware, IChild, IDocument, ICommandHandler<UndoCommandDefinition>, ICommandHandler<RedoCommandDefinition>, ICommandHandler<SaveFileCommandDefinition>, ICommandHandler<SaveFileAsCommandDefinition>, ICommandHandler, ILayoutItem, IScreen, IHaveDisplayName, IActivate, IDeactivate, IGuardClose, IClose, INotifyPropertyChangedEx, INotifyPropertyChanged
Inheritance
PropertyChangedBase
ViewAware
Screen
ServiceViewModel
Implements
IViewAware
IChild
IScreen
IHaveDisplayName
IActivate
IDeactivate
IGuardClose
IClose
INotifyPropertyChangedEx
Inherited Members
Screen.OnInitialize()
Screen.OnActivate()
Screen.Parent
Screen.DisplayName
Screen.IsActive
Screen.IsInitialized
Screen.Activated
Screen.AttemptingDeactivation
Screen.Deactivated
ViewAware.DefaultContext
ViewAware.Views
ViewAware.ViewAttached
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

ServiceViewModel(ScriptModule)

Initializes a new instance of the ServiceViewModel class. Calls the ServiceViewModel(ScriptModule, IScriptShellFactory, IUserManager, IOperatingModeManager) constructor. Missing parameters are initialized by Caliburn.Micro.IoC.

public ServiceViewModel(ScriptModule module)

Parameters

module ScriptModule

Script module for the service window.

ServiceViewModel(ScriptModule, IScriptShellFactory, IUserManager, IOperatingModeManager)

Initializes a new instance of the ServiceViewModel class.

public ServiceViewModel(ScriptModule module, IScriptShellFactory scriptShellFactory, IUserManager userManager, IOperatingModeManager operatingModeManager)

Parameters

module ScriptModule

Script module for the service window.

scriptShellFactory IScriptShellFactory

Script shell factory.

userManager IUserManager

Manager for the users.

operatingModeManager IOperatingModeManager

Manager for operating modes.

Exceptions

ArgumentNullException

Thrown when any parameter is null.

Properties

CloseCommand

Gets the command for closing the shell.

public override ICommand CloseCommand { get; }

Property Value

ICommand

Remarks

Executes the Close() and if no document is open, the base CloseCommand will be executed.

Module

Gets the script module.

public ScriptModule Module { get; }

Property Value

ScriptModule

Shell

Gets the shell.

public IScriptShell Shell { get; }

Property Value

IScriptShell

Methods

NotifyOfPropertyChange(string)

Notifies subscribers of the property change.

public override void NotifyOfPropertyChange(string propertyName = null)

Parameters

propertyName string

Name of the property.