Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public FGMainViewModel(ICompositeCommands applicationCommands, IEventAggregator EventAggregator)
        {
            ApplicationCommands  = applicationCommands;
            this.EventAggregator = EventAggregator;
            this.EventAggregator.GetEvent <ObjectEvent>().Subscribe(InitImportButton);

            OnLoadedCommand = new DelegateCommand(OnLoaded);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
        public FGNavigationItemView(IRegionManager _regionManager, IUnityContainer _container, ICompositeCommands _applicationCommands)
        {
            applicationCommands = _applicationCommands;

            container     = _container;
            regionManager = _regionManager;

            InitializeComponent();
            InitializeRegion();
        }