Пример #1
0
 /// <summary>
 ///  This is the main v
 /// </summary>
 /// <param name="regionManager"></param>
 public MainWindowViewModel(IRegionManager regionManager, IConfigurationService service, IEventManager eventManager)
 {
     _regionManager        = regionManager;
     _configurationService = service;
     // culture switch has the single resposabilty to change the culture.
     _cultureSwitch        = new CultureSwitcher(_configurationService, eventManager);
     NavigateCommand       = new DelegateCommand <string>(Navigate);
     ChangeLanguageCommand = new DelegateCommand <object>(SetLanguages);
     CloseWindowCommand    = new DelegateCommand(OnCloseMainWindow);
 }
Пример #2
0
 public MainWindowViewModel(IUnityContainer container, IRegionManager regionManager, IConfigurationService configurationService, IEventManager eventManager)
 {
     _container            = container;
     _regionManager        = regionManager;
     _configurationService = configurationService;
     _cultureSwitch        = new CultureSwitcher(_configurationService, eventManager);
     NavigateCommand       = new DelegateCommand <string>(Navigate);
     ChangeLanguageCommand = new DelegateCommand <object>(SetLanguages);
     CurrentDay            = DateTime.Now.DayOfWeek + " " + DateTime.Now.ToShortDateString();
 }