Пример #1
0
        private void ViewBusinessFlow(FoundItem businessFlowToViewFoundItem)
        {
            BusinessFlow       businessFlow = (BusinessFlow)businessFlowToViewFoundItem.OriginObject;
            RepositoryItemBase Parent       = (RepositoryItemBase)businessFlowToViewFoundItem.ParentItemToSave;
            BusinessFlowPage   w            = null;

            if (mContext == eContext.RunsetPage)
            {
                w = new BusinessFlowPage(businessFlow, false, General.RepositoryItemPageViewMode.View);
            }
            else if (mContext == eContext.AutomatePage)
            {
                w = new BusinessFlowPage(businessFlow, false, General.RepositoryItemPageViewMode.Automation);
            }
            else
            {
                w = new BusinessFlowPage(businessFlow, false, General.RepositoryItemPageViewMode.Standalone);
            }

            w.Width  = 1000;
            w.Height = 800;
            if (w.ShowAsWindow() == true)
            {
                RefreshFoundItemField(businessFlowToViewFoundItem);
            }
        }
Пример #2
0
        private void SetFramesContent()
        {
            mCurrentBusPage               = new BusinessFlowPage(App.BusinessFlow, true);
            CurrentBusFrame.Content       = mCurrentBusPage;
            CurrentBusExpander.IsExpanded = false;

            mVariablesPage = new VariablesPage(eVariablesLevel.BusinessFlow);
            mVariablesPage.grdVariables.ShowTitle = System.Windows.Visibility.Collapsed;
            BFVariablesFrame.Content = mVariablesPage;
            mActivitiesGroupsPage    = new ActivitiesGroupsPage();
            mActivitiesGroupsPage.grdActivitiesGroups.ShowTitle = System.Windows.Visibility.Collapsed;
            BFActivitiesGroupsFrame.Content = mActivitiesGroupsPage;

            mActivitiesPage = new ActivitiesPage();
            mActivitiesPage.grdActivities.ShowTitle = System.Windows.Visibility.Collapsed;
            BFActivitiesFrame.Content = mActivitiesPage;

            mActivityVariablesPage = new VariablesPage(eVariablesLevel.Activity);
            mActivityVariablesPage.grdVariables.ShowTitle = System.Windows.Visibility.Collapsed;
            ActivityVariablesFrame.Content = mActivityVariablesPage;

            mActionsPage = new ActionsPage();
            mActionsPage.grdActions.ShowTitle = System.Windows.Visibility.Collapsed;
            ActivityActionsFrame.Content      = mActionsPage;

            mReposiotryPage         = new RepositoryPage();
            RepositoryFrame.Content = mReposiotryPage;
        }
Пример #3
0
        private void SetExpanders()
        {
            // We do UI changes using the dispatcher since it might trgigger from STA like IB
            App.MainWindow.Dispatcher.Invoke(() =>
            {
                //set daynamic expanders titles
                if (App.BusinessFlow != null)
                {
                    App.BusinessFlow.PropertyChanged -= BusinessFlow_PropertyChanged;
                    App.BusinessFlow.PropertyChanged += BusinessFlow_PropertyChanged;


                    CurrentBusExpanderLable.Content = "'" + App.BusinessFlow.Name + "' " + GingerDicser.GetTermResValue(eTermResKey.BusinessFlow);

                    mCurrentBusPage         = new BusinessFlowPage(App.BusinessFlow, true);
                    CurrentBusFrame.Content = mCurrentBusPage;

                    UpdateCurrentActiityExpander();
                }
                else
                {
                    CurrentBusExpanderLable.Content = "No " + GingerDicser.GetTermResValue(eTermResKey.BusinessFlow);
                }
            });
        }
Пример #4
0
 Page ITreeViewItem.EditPage()
 {
     if (mBusinessFlowPage == null)
     {
         mBusinessFlowPage = new BusinessFlowPage(mBusinessFlow);
     }
     return(mBusinessFlowPage);
 }
Пример #5
0
        private void ViewBusinessFlow(FoundItem businessFlowToViewFoundItem)
        {
            BusinessFlow       businessFlow = (BusinessFlow)businessFlowToViewFoundItem.OriginObject;
            RepositoryItemBase Parent       = (RepositoryItemBase)businessFlowToViewFoundItem.ParentItemToSave;
            BusinessFlowPage   w            = new BusinessFlowPage(businessFlow, false, General.RepositoryItemPageViewMode.View);

            w.Width  = 1000;
            w.Height = 800;
            w.ShowAsWindow(); //Do we want to enable view Business flow window with save option also?
        }
Пример #6
0
 public void ShowPage()
 {
     if (xRecoveredItemsGrid.Grid.SelectedItem != null)
     {
         RecoveredItem selectedItem = (RecoveredItem)xRecoveredItemsGrid.Grid.SelectedItem;
         if (selectedItem.RecoveredItemObject is BusinessFlow)
         {
             BusinessFlowPage w = new BusinessFlowPage((BusinessFlow)selectedItem.RecoveredItemObject, false, General.RepositoryItemPageViewMode.View);
             w.Width  = 1000;
             w.Height = 800;
             w.ShowAsWindow();
         }
         if (selectedItem.RecoveredItemObject is Run.RunSetConfig)
         {
             Run.NewRunSetPage newRunSetPage = new Run.NewRunSetPage((Run.RunSetConfig)selectedItem.RecoveredItemObject, Run.NewRunSetPage.eEditMode.View);
             newRunSetPage.Width  = 1000;
             newRunSetPage.Height = 800;
             newRunSetPage.ShowAsWindow();
         }
     }
 }