コード例 #1
0
        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();
        }
コード例 #2
0
 public MainPageViewModel(IEventAggregator eventAggregator)
     : base(eventAggregator)
 {
     _layoutEditorPopulationService = ServiceLocator.Current.GetInstance<ILayoutEditorPopulationService>();
     EventsSubscribe();
 }