Esempio n. 1
0
 public frmCmpFileListViewModel(IEventAggregator ea, IXmlCompareCore _core, IRegionManager regionManager, pnlFileCompareListPanelViewModel _pnlFileCompare)
 {
     core = _core;
     _ea  = ea;
     _ea.GetEvent <InfoEvent>().Subscribe(Getfiletype);
     pnlFileCompare = _pnlFileCompare;
     _regionManager = regionManager;
     CancelCommand  = new DelegateCommand(CancelCommandExecute);
     OKCommand      = new DelegateCommand(OKCommandExecute);
 }
Esempio n. 2
0
 public CoreViewModel(IXmlCompareCore _core, IRegionManager regionManager, IEventAggregator ea)
 {
     core = _core;
     _ea  = ea;
     _ea.GetEvent <CollectionEvent>().Subscribe(GetCollection);
     _regionManager       = regionManager;
     OriginalPathCommand  = new DelegateCommand(OriginalPathCommandExecute);
     NewPathCommand       = new DelegateCommand(NewPathCommandExecute);
     OutputPathCommand    = new DelegateCommand(OutputPathCommandExecute);
     CompareReportCommand = new DelegateCommand <string>(CompareReportCommandExecute);
     ChangetextCommand    = new DelegateCommand(ChangetextCommandExecute);
     if (core.Initialize(out settingCollection))
     {
         Filetype     = new ObservableCollection <string>(settingCollection.GetAllSettingTypes());
         Selectedtype = Filetype[0];
         select       = Filetype[0];
         _ea.GetEvent <SourceEvent>().Publish(select);
     }
 }