Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext) { if (mActionsRepositoryPage == null) { mActionsRepositoryPage = new ActionsRepositoryPage(mActionsFolder, new Context()); } return(mActionsRepositoryPage); }
Page ITreeViewItem.EditPage() { if (mActionsRepositoryPage == null) { mActionsRepositoryPage = new ActionsRepositoryPage(Path); } return(mActionsRepositoryPage); }
private void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { if (xTabRepository.SelectedItem != null) { foreach (TabItem tab in xTabRepository.Items) { foreach (object ctrl in ((StackPanel)(tab.Header)).Children) { if (ctrl.GetType() == typeof(TextBlock)) { if (xTabRepository.SelectedItem == tab) { ((TextBlock)ctrl).Foreground = (SolidColorBrush)FindResource("$SelectionColor_Pink"); } else { ((TextBlock)ctrl).Foreground = (SolidColorBrush)FindResource("$Color_DarkBlue"); } ((TextBlock)ctrl).FontWeight = FontWeights.Bold; } } } } } catch (Exception ex) { Reporter.ToLog(eLogLevel.ERROR, "Error in Action Edit Page tabs style", ex); } // We do load on demand if (xTabRepository.SelectedItem == xTabActivitiesGroups) { if (((string)xTabActivitiesGroups.Tag) != "Done") { ActivitiesGroupsRepoPage = new ActivitiesGroupsRepositoryPage(WorkSpace.Instance.SolutionRepository.GetRepositoryItemRootFolder <ActivitiesGroup>(), mContext); xFrameActivitiesGroups.Content = ActivitiesGroupsRepoPage; // Mark that this tab is loaded with info xTabActivitiesGroups.Tag = "Done"; } } if (xTabRepository.SelectedItem == xTabActivities) { if (((string)xTabActivities.Tag) != "Done") { ActivitiesRepoPage = new ActivitiesRepositoryPage(WorkSpace.Instance.SolutionRepository.GetRepositoryItemRootFolder <Activity>(), mContext); xFrameActivities.Content = ActivitiesRepoPage; // Mark that this tab is loaded with info xTabActivities.Tag = "Done"; } } if (xTabRepository.SelectedItem == xTabActions) { if (((string)xTabActions.Tag) != "Done") { ActionsRepoPage = new ActionsRepositoryPage(WorkSpace.Instance.SolutionRepository.GetRepositoryItemRootFolder <Act>(), mContext); xFrameActions.Content = ActionsRepoPage; // Mark that this tab is loaded with info xTabActions.Tag = "Done"; } } }