Class SourceMvcViewModelBase<T>
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
ClearCommand
public RelayCommand ClearCommand { get; }
Property Value
DeleteCommand
public RelayCommand DeleteCommand { get; }
Property Value
EditCommand
public RelayCommand EditCommand { get; }
Property Value
ExportCommand
public RelayCommand ExportCommand { get; }
Property Value
ImportCommand
public RelayCommand ImportCommand { get; }
Property Value
InfoCommand
public RelayCommand InfoCommand { get; }
Property Value
SaveCommand
public RelayCommand SaveCommand { get; }
Property Value
Methods
Add(T)
添加
protected abstract Task<Tuple<bool, string>> Add(T t)
Parameters
t
T
Returns
AddMethod(object)
protected virtual Task AddMethod(object obj)
Parameters
obj
object
Returns
Clear()
清空
protected abstract Task<Tuple<bool, string>> Clear()
Returns
ClearMethod(object)
protected virtual Task ClearMethod(object obj)
Parameters
obj
object
Returns
Delete()
删除
protected abstract Task<Tuple<bool, string>> Delete()
Returns
DeleteChecked(List<T>)
删除选中项
protected abstract Task<Tuple<bool, string>> DeleteChecked(List<T> checks)
Parameters
checks
List<T>
Returns
DeleteMethod(object)
protected virtual Task DeleteMethod(object obj)
Parameters
obj
object
Returns
Edit()
编辑
protected abstract Task<Tuple<bool, string>> Edit()
Returns
EditMethod(object)
protected virtual Task EditMethod(object obj)
Parameters
obj
object
Returns
Export(string)
protected virtual Task Export(string path)
Parameters
path
string
Returns
GetAddModel()
protected virtual T GetAddModel()
Returns
- T
GetEditModel()
protected virtual T GetEditModel()
Returns
- T
GetInfoModel()
protected virtual object GetInfoModel()
Returns
Import(string)
protected virtual Task Import(string path)
Parameters
path
string
Returns
InfoMethod(object)
protected virtual Task InfoMethod(object obj)
Parameters
obj
object
Returns
OnCollectionChanged(object)
protected virtual void OnCollectionChanged(object obj)
Parameters
obj
object
Save()
保存
protected abstract Task<Tuple<bool, string>> Save()