Table of Contents

Class TypeDataSelectorViewModel

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

Represents a view model for selecting type data using a type data provider.

public class TypeDataSelectorViewModel : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
Inheritance
PropertyChangedBase
TypeDataSelectorViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

TypeDataSelectorViewModel(GeminiTypeDataModule)

Initializes a new instance of the TypeDataSelectorViewModel class.

public TypeDataSelectorViewModel(GeminiTypeDataModule module)

Parameters

module GeminiTypeDataModule

Gemini type data module.

Exceptions

ArgumentNullException

Thrown when module is null.

Properties

FilterString

Gets or sets the string for filtering.

public string FilterString { get; set; }

Property Value

string

FilteredTypes

Gets the filtered Types.

public ICollectionView FilteredTypes { get; }

Property Value

ICollectionView

IsBusy

Gets or sets a value indicating whether the module is busy.

public bool IsBusy { get; set; }

Property Value

bool

ProviderIsSelectable

Gets a value indicating whether type data providers can be selected.

public bool ProviderIsSelectable { get; }

Property Value

bool

Providers

Gets the type data providers, the user can choose.

public virtual IEnumerable<ITypeDataProvider> Providers { get; }

Property Value

IEnumerable<ITypeDataProvider>

SelectedProvider

Gets or sets the selected provider.

[DoNotCheckEquality]
public virtual ITypeDataProvider SelectedProvider { get; set; }

Property Value

ITypeDataProvider

SelectedType

Gets or sets the selected type.

public string SelectedType { get; set; }

Property Value

string

Types

Gets the available types.

[DependsOn("SelectedProvider")]
public IEnumerable<string> Types { get; }

Property Value

IEnumerable<string>

Methods

SetDefaultProvider()

Sets the provider to the default (DefaultProvider).

public virtual void SetDefaultProvider()