Class SourceViewModel<T>
- Namespace
- HeBianGu.General.WpfControlLib
- Assembly
- HeBianGu.General.WpfControlLib.dll
public abstract class SourceViewModel<T> : NotifyPropertyChanged, INotifyPropertyChanged
Type Parameters
T
- Inheritance
-
SourceViewModel<T>
- Implements
-
- Derived
-
- Inherited Members
-
- Extension Methods
-
Properties
AddCommand
public RelayCommand AddCommand { get; }
Property Value
- RelayCommand
AddItem
public T AddItem { get; set; }
Property Value
- T
ClearCommand
public RelayCommand ClearCommand { get; }
Property Value
- RelayCommand
Collection
public ObservableCollection<T> Collection { get; set; }
Property Value
- ObservableCollection<T>
DeleteCommand
public RelayCommand DeleteCommand { get; }
Property Value
- RelayCommand
DetailCommand
public RelayCommand DetailCommand { get; }
Property Value
- RelayCommand
EditCommand
public RelayCommand EditCommand { get; }
Property Value
- RelayCommand
SelectedItem
public T SelectedItem { get; set; }
Property Value
- T
Methods
Add(out string)
protected abstract T Add(out string error)
Parameters
error
string
Returns
- T
Clear(out string)
protected abstract bool Clear(out string error)
Parameters
error
string
Returns
- bool
Delete(out string)
protected abstract bool Delete(out string error)
Parameters
error
string
Returns
- bool
DeleteAll(SelectViewModel<T>, out string)
protected abstract bool DeleteAll(SelectViewModel<T> checks, out string error)
Parameters
checks
SelectViewModel<T>
error
string
Returns
- bool
Detail(out string)
protected abstract bool Detail(out string error)
Parameters
error
string
Returns
- bool
Edit(out string)
protected abstract bool Edit(out string error)
Parameters
error
string
Returns
- bool