private void Activate() { EventAggregator.GetEvent <SaveDataChangeEvent>().Subscribe(SavePageData); EventAggregator.GetEvent <QueryExistenceWellboresRootGridViewModel>().Subscribe(RootPublish); RegionContextManager.ActionSubscribeChangeRegionContext(RegionName, ChangeRegionContext); ButtonsEventCommandService.Subscribe(CommandNames.RefreshPageData, RefreshPageData, true); ButtonsEventCommandService.Subscribe(CommandNames.SavePageData, RefreshPageData, false); ButtonsEventCommandService.Subscribe(CommandNames.ImportPageData, ImportPageData, false); }
private void Activate() { ButtonsEventCommandService.Subscribe(CommandNames.RefreshTreeViewDCommand, RefreshTreeView, true); InitializeRootTreeView(); InitializeCurrenTreeViewModel(); }