public WorkAreaViewModel(IEventAggregator eventAggregator, ILayoutEditorPopulationService layoutEditorPopulationService) : base(eventAggregator) { _layoutEditorPopulationService = layoutEditorPopulationService; _userSettingsService = ServiceLocator.Current.GetInstance<IUserSettingsService>(); SaveCommand = new DelegateCommand<SingleLayoutEditor>(OnSaveAndClose); CurrentStateChangeCommand = new DelegateCommand<SingleLayoutEditor>(OnUpdateCurrentState); //To Delete _userLayoutService = ServiceLocator.Current.GetInstance<IUserLayoutService>(); LoadUserLayoutCommand = new DelegateCommand<LoadUserLayoutModel>(OnLoadUserLayout); //End of To Delete EventsSubscribe(); LoadData(); }
public MainPageViewModel(IEventAggregator eventAggregator) : base(eventAggregator) { _layoutEditorPopulationService = ServiceLocator.Current.GetInstance<ILayoutEditorPopulationService>(); EventsSubscribe(); }