Table of Contents

Class TypeDataEditorViewModel

Namespace
Loehnert.Lisrt.TypeAndResult.TypeDataEditor.ViewModels
Assembly
Loehnert.Lisrt.TypeAndResult.dll

View model for a type data editor tool.

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

Constructors

TypeDataEditorViewModel(IUserManager)

Initializes a new instance of the TypeDataEditorViewModel class.

[ImportingConstructor]
public TypeDataEditorViewModel(IUserManager userManager)

Parameters

userManager IUserManager

Manager for the users.

Exceptions

ArgumentNullException

Thrown when userManager is null.

Properties

CloseCommand

Gets a command for closing this document.

public override ICommand CloseCommand { get; }

Property Value

ICommand

DisplayName

Gets the display name.

public override string DisplayName { get; }

Property Value

string

IconSource

Gets the icon.

public override Uri IconSource { get; }

Property Value

Uri

IsBusy

Gets a value indicating whether the editor is busy.

public bool IsBusy { get; }

Property Value

bool

IsDirty

Gets a value indicating whether data on the editor are unsaved.

public bool IsDirty { get; }

Property Value

bool

TypeData

Gets the loaded type data.

public TypeData TypeData { get; }

Property Value

TypeData

TypeDataViewModel

Gets the view model for the type data.

public TypeDataViewModel TypeDataViewModel { get; }

Property Value

TypeDataViewModel

Methods

Load(ITypeDataProvider, string)

Loads the type data.

public void Load(ITypeDataProvider provider, string typeIdentifier)

Parameters

provider ITypeDataProvider

Provider for loading.

typeIdentifier string

Identifier of the type data.

New(string)

Creates a new type data.

public void New(string typeIdentifier)

Parameters

typeIdentifier string

Type identifier.

OnInitialize()

Called when initializing.

protected override void OnInitialize()

Save(ITypeDataProvider)

Saves the type data.

public void Save(ITypeDataProvider provider)

Parameters

provider ITypeDataProvider

Provider for saving.