Ejemplo n.º 1
0
        private void AnalyzerItemsGrid_RowDoubleClick(object sender, EventArgs e)
        {
            //show the item edit page
            if (AnalyzerItemsGrid.CurrentItem is AnalyzeAction)
            {
                AnalyzeAction currentAnalyzeAction = (AnalyzeAction)AnalyzerItemsGrid.CurrentItem;
                Act           actionIssue          = currentAnalyzeAction.mAction;
                actionIssue.SolutionFolder = WorkSpace.Instance.Solution.Folder.ToUpper();
                ActionEditPage actedit = new ActionEditPage(actionIssue, General.eRIPageViewMode.ChildWithSave, currentAnalyzeAction.mBusinessFlow, currentAnalyzeAction.mActivity);
                //setting the BusinessFlow on the Action in Order to save
                //actedit.mActParentBusinessFlow = ((AnalyzeAction)AnalyzerItemsGrid.CurrentItem).mBusinessFlow;
                //actedit.ap = null;
                actedit.ShowAsWindow(eWindowShowStyle.Dialog);
            }

            if (AnalyzerItemsGrid.CurrentItem is AnalyzeActivity)
            {
                AnalyzeActivity currentAnalyzeActivity = (AnalyzeActivity)AnalyzerItemsGrid.CurrentItem;
                Activity        ActivityIssue          = currentAnalyzeActivity.mActivity;
                //ActivityIssue.SolutionFolder =  WorkSpace.Instance.Solution.Folder.ToUpper();
                GingerWPF.BusinessFlowsLib.ActivityPage ActivityEdit = new GingerWPF.BusinessFlowsLib.ActivityPage(ActivityIssue, new Context()
                {
                    BusinessFlow = currentAnalyzeActivity.mBusinessFlow
                }, General.eRIPageViewMode.ChildWithSave);
                //setting the BusinessFlow on the Activity in Order to save
                //ActivityEdit.mBusinessFlow = ((AnalyzeActivity)AnalyzerItemsGrid.CurrentItem).mBusinessFlow;
                //ActivityEdit.ap = null;
                ActivityEdit.ShowAsWindow(eWindowShowStyle.Dialog);
            }
        }
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     if (mActivityEditPage == null)
     {
         mActivityEditPage = new GingerWPF.BusinessFlowsLib.ActivityPage(mActivity, new Amdocs.Ginger.Common.Context()
         {
             Activity = mActivity
         }, General.eRIPageViewMode.SharedReposiotry);
     }
     return(mActivityEditPage);
 }
Ejemplo n.º 3
0
 private void EditActivity(object sender, RoutedEventArgs e)
 {
     if (xActivitiesRepositoryGrid.CurrentItem != null)
     {
         Activity a = (Activity)xActivitiesRepositoryGrid.CurrentItem;
         GingerWPF.BusinessFlowsLib.ActivityPage w = new GingerWPF.BusinessFlowsLib.ActivityPage(a, new Context()
         {
             Activity = a
         }, General.eRIPageViewMode.SharedReposiotry);
         w.ShowAsWindow();
     }
     else
     {
         Reporter.ToUser(eUserMsgKey.AskToSelectItem);
     }
 }