Table of Contents

Class SourceMvcViewModelBase<T>

Namespace
HeBianGu.Service.Mvc
Assembly
HeBianGu.Service.Mvc.dll
public abstract class SourceMvcViewModelBase<T> : MvcEntityViewModelBase<T>, INotifyPropertyChanged, IDisplayer, IMvcViewModelBase, IAuthority, IMvcEntityViewModelBase<T> where T : new()

Type Parameters

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

Properties

AddCommand

public RelayCommand AddCommand { get; }

Property Value

RelayCommand

ClearCommand

public RelayCommand ClearCommand { get; }

Property Value

RelayCommand

DeleteCommand

public RelayCommand DeleteCommand { get; }

Property Value

RelayCommand

EditCommand

public RelayCommand EditCommand { get; }

Property Value

RelayCommand

ExportCommand

public RelayCommand ExportCommand { get; }

Property Value

RelayCommand

ImportCommand

public RelayCommand ImportCommand { get; }

Property Value

RelayCommand

InfoCommand

public RelayCommand InfoCommand { get; }

Property Value

RelayCommand

SaveCommand

public RelayCommand SaveCommand { get; }

Property Value

RelayCommand

Methods

Add(T)

添加

protected abstract Task<Tuple<bool, string>> Add(T t)

Parameters

t T

Returns

Task<Tuple<bool, string>>

AddMethod(object)

protected virtual Task AddMethod(object obj)

Parameters

obj object

Returns

Task

Clear()

清空

protected abstract Task<Tuple<bool, string>> Clear()

Returns

Task<Tuple<bool, string>>

ClearMethod(object)

protected virtual Task ClearMethod(object obj)

Parameters

obj object

Returns

Task

Delete()

删除

protected abstract Task<Tuple<bool, string>> Delete()

Returns

Task<Tuple<bool, string>>

DeleteChecked(List<T>)

删除选中项

protected abstract Task<Tuple<bool, string>> DeleteChecked(List<T> checks)

Parameters

checks List<T>

Returns

Task<Tuple<bool, string>>

DeleteMethod(object)

protected virtual Task DeleteMethod(object obj)

Parameters

obj object

Returns

Task

Edit()

编辑

protected abstract Task<Tuple<bool, string>> Edit()

Returns

Task<Tuple<bool, string>>

EditMethod(object)

protected virtual Task EditMethod(object obj)

Parameters

obj object

Returns

Task

Export(string)

protected virtual Task Export(string path)

Parameters

path string

Returns

Task

GetAddModel()

protected virtual T GetAddModel()

Returns

T

GetEditModel()

protected virtual T GetEditModel()

Returns

T

GetInfoModel()

protected virtual object GetInfoModel()

Returns

object

Import(string)

protected virtual Task Import(string path)

Parameters

path string

Returns

Task

InfoMethod(object)

protected virtual Task InfoMethod(object obj)

Parameters

obj object

Returns

Task

OnCollectionChanged(object)

protected virtual void OnCollectionChanged(object obj)

Parameters

obj object

Save()

保存

protected abstract Task<Tuple<bool, string>> Save()

Returns

Task<Tuple<bool, string>>