コード例 #1
0
        protected override void CreateControls()
        {
            var transition = new ContainerTransition
            {
                Label  = "Please enter transition",
                Name   = "transition",
                Source = new FieldSourceDTO()
                {
                    ManifestType    = CrateManifestTypes.StandardDesignTimeFields,
                    RequestUpstream = true
                }
            };

            AddControls(transition);
        }
コード例 #2
0
 public static void ValidateTransitions(this ValidationManager validationManager, ContainerTransition control)
 {
     for (var i = 0; i < control.Transitions.Count; i++)
     {
         var transition = control.Transitions[i];
         if (transition.Transition.RequiresTargetNodeId() && transition.TargetNodeId == null)
         {
             validationManager.SetError(GetMissingNodeTransitionErrorMessage(transition.Transition), $"transition_{i}");
         }
     }
 }