internal override async Task DelTheObject(dynamic item) { ViewModelTypework viewModelTypework_ = new ViewModelTypework(); await OperationTypework.Delete(item); viewModelTypework_.TheTypework = item; ObservableCollectionTypework.Clear(); Refresh(); }
internal override void GetDataBase() { var result = OperationTypework.Select("select * from Typework"); foreach (var item in result) { ViewModelTypework viewModelTypework = new ViewModelTypework(); viewModelTypework.TheTypework = item; ObservableCollectionTypework.Add(viewModelTypework); } TableTypeworkObservable = ObservableCollectionTypework; RaisePropertyChanged("Typework"); }
internal override async Task AddTheObject(dynamic item) { ViewModelTypework viewModelTypework_ = new ViewModelTypework(); await OperationTypework.Insert(new Typework(0, Name)); viewModelTypework_.TheTypework = item; ObservableCollectionTypework.Add(viewModelTypework_); }