Exemple #1
0
 public CaseListViewModel()
 {
     FilterArgs       = new CaseFilterArgs();
     OpenCommand      = new RelayCommand <RecentCaseEntityModel>(Open);
     DeleteCommand    = new RelayCommand(Delete, CanDelete);
     SearchCommand    = new RelayCommand(Search);
     SelectAllCommand = new RelayCommand <Boolean>(SelectAll);
 }
 public CaseListViewModel()
 {
     FilterArgs               = new CaseFilterArgs();
     _openCommandProxy        = new ProxyRelayCommand <RecentCaseEntityModel>(Open);
     _removeCommandProxy      = new ProxyRelayCommand <CaseItem>(Remove);
     _searchCommandProxy      = new ProxyRelayCommand(Search);
     SelectAllCommand         = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <Boolean>(SelectAll, (b) => Items != null && Items.Count != 0);
     SelectCommand            = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <Boolean>(Select);
     _removeBatchCommandProxy = new ProxyRelayCommand(RemoveBatch);
 }