示例#1
0
 public DeviceListViewModel()
 {
     _selectDeviceCommandProxy = new ProxyRelayCommand(SelectDevice);
     CloseCommand        = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <DeviceExtractionAdorner>(Close);
     _moveToCommandProxy = new ProxyRelayCommand <DeviceExtractionAdorner>(MoveTo);
     _deleteCommandProxy = new ProxyRelayCommand <DeviceExtractionAdorner>(Delete);
     PopupCommand        = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <DeviceExtractionAdorner>(Popup);
     MessageAggregation.RegisterGeneralMsg <object>(this, ExportKeys.DeviceWindowClosedMsg, (d) => BackToList(d.Parameters as DeviceExtractionAdorner));
 }
示例#2
0
 public UserListViewModel()
 {
     _addProxyCommand    = new ProxyRelayCommand(Add);
     _removeProxyCommand = new ProxyRelayCommand <UserInfoModel>(Remove);
     _updateProxyCommand = new ProxyRelayCommand <UserInfoModel>(Update);
     _searchProxyCommand = new ProxyRelayCommand <String>(Search);
     SelectAllCommand    = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <Boolean>(SelectAll, (b) => Users != null && Users.Count != 0);
     SelectCommand       = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <Boolean>(Select);
     _removeBatchCommand = new ProxyRelayCommand(RemoveBatch);
 }
示例#3
0
 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);
 }