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
-
PropertyChangedBaseViewAwareScreenServiceViewModel
- Implements
-
IViewAwareIChildIScreenIHaveDisplayNameIActivateIDeactivateIGuardCloseICloseINotifyPropertyChangedEx
- Inherited Members
-
Screen.OnInitialize()Screen.OnActivate()Screen.ParentScreen.DisplayNameScreen.IsActiveScreen.IsInitializedScreen.ActivatedScreen.AttemptingDeactivationScreen.DeactivatedViewAware.DefaultContextViewAware.ViewsViewAware.ViewAttachedPropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.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
ScriptModuleScript 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
ScriptModuleScript module for the service window.
scriptShellFactory
IScriptShellFactoryScript shell factory.
userManager
IUserManagerManager for the users.
operatingModeManager
IOperatingModeManagerManager 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
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
Shell
Gets the shell.
public IScriptShell Shell { get; }
Property Value
Methods
NotifyOfPropertyChange(string)
Notifies subscribers of the property change.
public override void NotifyOfPropertyChange(string propertyName = null)
Parameters
propertyName
stringName of the property.