コード例 #1
0
        public void WizardEvent(WizardEventArgs WizardEventArgs)
        {
            mWizard = (AddActivityWizard)WizardEventArgs.Wizard;
            switch (WizardEventArgs.EventType)
            {
            case EventType.Init:
                break;

            case EventType.Active:
                if (mLastActivity != mWizard.ActivityToAdd)
                {
                    mLastActivity  = mWizard.ActivityToAdd;
                    xFrame.Content = new ActivityDetailsPage(mWizard.ActivityToAdd, mWizard.Context, General.eRIPageViewMode.Standalone);
                }
                break;
            }
        }
コード例 #2
0
 public void WizardEvent(WizardEventArgs WizardEventArgs)
 {
     mWizard = (AddActivityWizard)WizardEventArgs.Wizard;
     switch (WizardEventArgs.EventType)
     {
     case EventType.Init:
         if (mWizard.ActivitiesGroupPreSet == false)
         {
             xGroupComboBox.ItemsSource       = mWizard.Context.BusinessFlow.ActivitiesGroups;
             xGroupComboBox.DisplayMemberPath = nameof(ActivitiesGroup.Name);
             BindingHandler.ObjFieldBinding(xGroupComboBox, ComboBox.SelectedItemProperty, mWizard, nameof(AddActivityWizard.ParentActivitiesGroup));
         }
         else
         {
             xGroupPanel.Visibility = Visibility.Collapsed;
         }
         xRegularType.IsChecked = true;
         break;
     }
 }