Table of Contents

Class ModelViewModel<T>

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll
public class ModelViewModel<T> : NotifyPropertyChanged, INotifyPropertyChanged, IModelViewModel<T>, IModelViewModel, ISearchable

Type Parameters

T
Inheritance
ModelViewModel<T>
Implements
Derived
Inherited Members
Extension Methods

Constructors

ModelViewModel(T)

public ModelViewModel(T t)

Parameters

t T

Properties

IsBuzy

说明

[Browsable(false)]
public bool IsBuzy { get; set; }

Property Value

bool

IsEnbled

是否可用

[Browsable(false)]
public bool IsEnbled { get; set; }

Property Value

bool

Message

[Browsable(false)]
public string Message { get; set; }

Property Value

string

Model

Model层

[Browsable(false)]
public T Model { get; set; }

Property Value

T

Value

说明

[Browsable(false)]
public double Value { get; set; }

Property Value

double

Visible

是否可见

[Browsable(false)]
public bool Visible { get; set; }

Property Value

bool

Methods

Filter(string)

public virtual bool Filter(string txt)

Parameters

txt string

Returns

bool

LoadValue(out string)

将Model数据加载到ViewModel属性上面 通过名称匹配

protected virtual bool LoadValue(out string message)

Parameters

message string

Returns

bool

SaveValue(out string)

将ViewModel数据加载到Model属性上面 通过名称匹配

protected virtual bool SaveValue(out string message)

Parameters

message string

Returns

bool