public UnitSettingsViewModel(IRecordContext <WorkUnit> dbService) { _dbService = dbService; _addProxyCommand = new ProxyRelayCommand(Add, () => Number != String.Empty && UnitName != String.Empty); _removeProxyCommand = new ProxyRelayCommand(Remove, () => SelctedItem != null); WorkUnit[] cts = dbService.Records.ToArray(); WorkUnits = new ObservableCollection <WorkUnit>(cts); }
public CaseCreationViewModel(IRecordContext <CaseType> caseTypeService) { _confirmCommandProxy = new ProxyRelayCommand(Confirm, CanConfirm); _updateCaseTypeCommandProxy = new ProxyRelayCommand(UpdateCasetType); _skipCommandProxy = new ProxyRelayCommand(Skip); SelectDirectoryCommand = new RelayCommand(SelectDirectory); _caseTypeService = caseTypeService; }
public CaseTypeSettingsViewModel(IRecordContext <CaseType> dbService) { _dbService = dbService; _addProxyCommand = new ProxyRelayCommand(Add, () => CaseTypeName != String.Empty); _removeProxyCommand = new ProxyRelayCommand(Remove, () => SelctedItem != null); CaseType[] cts = dbService.Records.ToArray(); CaseTypes = new ObservableCollection <CaseType>(cts); }
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)); }
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); }
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); }
public PluginListViewModel() { _searchProxyCommand = new ProxyRelayCommand(Search, () => Plugins != null); }
public DeviceExtractionViewModel() { Content = IocManagerSingle.Instance.GetPart <UcViewBase>("XLY.SF.Project.DataExtraction.ExtractionView"); _addPlanCommandProxy = new ProxyRelayCommand(Add, () => PlanName != String.Empty); _removePlanCommandProxy = new ProxyRelayCommand <ExtractionPlanModel>(Remove); }