コード例 #1
0
 private void DeActivate()
 {
     SavePageData();
     EventAggregator.GetEvent <SaveDataChangeEvent>().Unsubscribe(SavePageData);
     EventAggregator.GetEvent <QueryExistenceWellboresRootGridViewModel>().Unsubscribe(RootPublish);
     ButtonsEventCommandService.UnSubscribe(CommandNames.RefreshPageData, RefreshPageData);
     ButtonsEventCommandService.UnSubscribe(CommandNames.SavePageData, RefreshPageData);
     ButtonsEventCommandService.UnSubscribe(CommandNames.ImportPageData, ImportPageData);
     RegionContextManager.UnsubscribeChangeRegionContext(RegionName, ChangeRegionContext);
     Root = null;
 }
コード例 #2
0
 private void DeActivate()
 {
     ButtonsEventCommandService.UnSubscribe(CommandNames.RefreshTreeViewDCommand, RefreshTreeView);
     SaveCurrenTreeViewModel();
     Root = null;
 }