public FGfcuViewModel(ICompositeCommands applicationCommands, IRegionManager regionManager, IEventAggregator eventAggregator, IFCUServices fcuServices, IFCUTimerSevices timerServices) { this.regionManager = regionManager; this.fcuServices = fcuServices; this.timerServices = timerServices; this.eventAggregator = eventAggregator; this.eventAggregator.GetEvent <AuthenticatedUserEvent>().Subscribe(InitAuthenticatedUser); this.eventAggregator.GetEvent <FilterTextBoxEvent>().Subscribe(InitTextBoxSearch); this.eventAggregator.GetEvent <FCU_ItemMessageEvent>().Subscribe(ConsumeItemMessage); IsEnableAutoRefresh = true; OnLoadedCommand = new DelegateCommand(OnLoaded); OpenFCUDetailsCommand = new DelegateCommand <FCU>(OpenFCUDetails); _IsSelected = new DelegateCommand <object>(CheckBoxIsSelected); _checkedAllCommand = new DelegateCommand(() => { SetIsSelectedProperty(true); }); _unCheckedAllCommand = new DelegateCommand(() => { SetIsSelectedProperty(false); }); ImportFGCommand = new DelegateCommand(Import, CanImport); ExportFGCommand = new DelegateCommand(Export, CanExport); PrintLblCommand = new DelegateCommand(PrintLabel, CanPrint); DeleteFGCommand = new DelegateCommand(Delete, CanDelete); OKCommand = new DelegateCommand(OKImport); XOKCommand = new DelegateCommand(OnLoaded); }
public FGMainViewModel(ICompositeCommands applicationCommands, IEventAggregator EventAggregator) { ApplicationCommands = applicationCommands; this.EventAggregator = EventAggregator; this.EventAggregator.GetEvent <ObjectEvent>().Subscribe(InitImportButton); OnLoadedCommand = new DelegateCommand(OnLoaded); }
public TabRegionController(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, ICompositeCommands _applicationCommands) { this.container = container; this.regionManager = regionManager; this._applicationCommands = _applicationCommands; this.eventAggregator = eventAggregator; this.eventAggregator.GetEvent <FGUserSelectedEvent>().Subscribe(InitTabRegion, true); }
public FGNavigationItemView(IRegionManager _regionManager, IUnityContainer _container, ICompositeCommands _applicationCommands) { applicationCommands = _applicationCommands; container = _container; regionManager = _regionManager; InitializeComponent(); InitializeRegion(); }