Exemplo n.º 1
0
 Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext)
 {
     if (mActivitiesGroupPage == null)
     {
         mActivitiesGroupPage = new ActivitiesGroupPage(mActivitiesGroup, null, ActivitiesGroupPage.eEditMode.SharedRepository);
     }
     return(mActivitiesGroupPage);
 }
Exemplo n.º 2
0
 Page ITreeViewItem.EditPage()
 {
     if (mActivitiesGroupPage == null)
     {
         mActivitiesGroupPage = new ActivitiesGroupPage(mActivitiesGroup, null, ActivitiesGroupPage.eEditMode.SharedRepository);
     }
     return(mActivitiesGroupPage);
 }
 private void EditActivityGroup(object sender, RoutedEventArgs e)
 {
     if (xActivitiesGroupsRepositoryGrid.CurrentItem != null)
     {
         ActivitiesGroup     activityGroup        = (ActivitiesGroup)xActivitiesGroupsRepositoryGrid.CurrentItem;
         ActivitiesGroupPage mActivitiesGroupPage = new ActivitiesGroupPage(activityGroup, null, ActivitiesGroupPage.eEditMode.SharedRepository);
         mActivitiesGroupPage.ShowAsWindow();
     }
     else
     {
         Reporter.ToUser(eUserMsgKey.AskToSelectItem);
     }
 }
        private void EditActivityGroup(object sender, RoutedEventArgs e)
        {
            if (xActivitiesGroupsRepositoryGrid.CurrentItem != null)
            {
                ActivitiesGroup activityGroup = (ActivitiesGroup)xActivitiesGroupsRepositoryGrid.CurrentItem;
                BusinessFlow    currentBF     = null;
                if (mContext != null)
                {
                    currentBF = mContext.BusinessFlow;
                }

                ActivitiesGroupPage mActivitiesGroupPage = new ActivitiesGroupPage(activityGroup, currentBF, ActivitiesGroupPage.eEditMode.SharedRepository);
                mActivitiesGroupPage.ShowAsWindow();
            }
            else
            {
                Reporter.ToUser(eUserMsgKey.AskToSelectItem);
            }
        }