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; }
private void DeActivate() { ButtonsEventCommandService.UnSubscribe(CommandNames.RefreshTreeViewDCommand, RefreshTreeView); SaveCurrenTreeViewModel(); Root = null; }