Exemplo n.º 1
0
 private void Activate()
 {
     InitializeMultiTablePositionType();
     eventAggregator.GetEvent <UpDownMultiTableEvent>().Subscribe(UpDownMultiTable);
     RegionContextManager.ActionSubscribeChangeRegionContext(RegionName, ChangeRegionContext);
     InitializeSplitterDistance();
 }
Exemplo n.º 2
0
 private void UpdateMultiRegionContext()
 {
     ControlViewManager.DeactivateAllActiveViewToMultiPageControl();
     RegionContextManager.SetRegionContext(RegionNames.MultiPageUpRegion, pageRegionContext.EntityId);
     RegionContextManager.SetRegionContext(RegionNames.MultiPageBottomRegion, pageRegionContext.EntityId);
     ControlViewManager.ActivateMultiPageControlViews(pageRegionContext.DisplayPageRegionTypeId, multiTablePositionTypeId);
 }
Exemplo n.º 3
0
 private void DeActivate()
 {
     eventAggregator.GetEvent <UpDownMultiTableEvent>().Unsubscribe(UpDownMultiTable);
     ControlViewManager.DeactivateAllActiveViewToMultiPageControl();
     RegionContextManager.UnsubscribeChangeRegionContext(RegionName, ChangeRegionContext);
     SaveSplitterDistance();
     SaveMultiTablePositionType();
 }
 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);
 }
Exemplo n.º 5
0
 private void SetChaildsDataContext(long entityTypeId, long displayPageRegionTypeId)
 {
     if (entityTypeId == (long)EntityType.NoN)
     {
         RegionContextManager.SetRegionContext(RegionNames.MainPageCaptionRegion, String.Empty);
     }
     else
     {
         RegionContextManager.SetRegionContext(RegionNames.MainPageCaptionRegion, RegionContext.NavigationTreeViewRegionContext.FullName);
         if (displayPageRegionTypeId != (long)DisplayPageRegionType.NoN)
         {
             RegionContextManager.SetRegionContext(RegionNames.PageRegion, RegionContextManager.GetPrameters(RegionContext.NavigationTreeViewRegionContext.EntityId,
                                                                                                             RegionContext.DisplayPageRegionTypeId));
         }
     }
 }
 private void ChangeRegionContext(object regionContext)
 {
     RegionContextManager.SetRegionContext(RegionNames.MainPageRegion, regionContext as INavigationTreeViewRegionContext);
 }
 private void DeActivate()
 {
     RegionContextManager.UnsubscribeChangeRegionContext(RegionNames.NavigationTreeViewRegion, ChangeRegionContext);
     ControlViewManager.DeactivateAllActiveViewToRootControl();
     SaveSplitterDistance();
 }
 private void Activate()
 {
     RegionContextManager.ActionSubscribeChangeRegionContext(RegionNames.NavigationTreeViewRegion, ChangeRegionContext);
     InitializeSplitterDistance();
 }
Exemplo n.º 9
0
 private void DeActivate()
 {
     RegionContextManager.UnsubscribeChangeRegionContext(RegionName, ChangeRegionContext);
     Caption = String.Empty;
 }
Exemplo n.º 10
0
 private void Activate()
 {
     RegionContextManager.ActionSubscribeChangeRegionContext(RegionName, ChangeRegionContext);
 }
Exemplo n.º 11
0
 private void DeActivate()
 {
     ControlViewManager.DeactivateAllActiveViewToMainPageControl();
     RegionContextManager.UnsubscribeChangeRegionContext(RegionNames.MainPageButtonsPanelRegion, ChangeMainPageButtonsPanelRegioContext);
     RegionContextManager.UnsubscribeChangeRegionContext(RegionName, ChangeRegionContext);
 }
Exemplo n.º 12
0
 private void Activate()
 {
     RegionContextManager.ActionSubscribeChangeRegionContext(RegionName, ChangeRegionContext);
     RegionContextManager.ActionSubscribeChangeRegionContext(RegionNames.MainPageButtonsPanelRegion, ChangeMainPageButtonsPanelRegioContext);
 }
 private void RootSelectedItemChanged(BaseTreeViewModel baseTreeViewModel)
 {
     CurrenTreeViewItem = baseTreeViewModel;
     RegionContextManager.SetRegionContext(RegionName, CurrenTreeViewItem);
 }