//METHODS public LoaiHoaViewModel() { LoaiHoaRepository = new LoaiHoaRepository(); LoadLoaiHoa(); ModifyLoaiHoa = new Command(Modify, IsValid); DeleteLoaiHoa = new Command(Delete, IsValid); loaiHoa = new LoaiHoa(); }
public LoaiHoaViewModel() { loaihoaRepository = new LoaiHoaRepository(); loadLoaiHoa(); AddLoaiHoa = new Command(Insert); UpdateLoaiHoa = new Command(Update, CanExe); DeleteLoaiHoa = new Command(Delete, CanExe); loaihoa = new LoaiHoa(); }