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