コード例 #1
0
 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);
 }
コード例 #2
0
 private void Activate()
 {
     ButtonsEventCommandService.Subscribe(CommandNames.RefreshTreeViewDCommand, RefreshTreeView, true);
     InitializeRootTreeView();
     InitializeCurrenTreeViewModel();
 }