protected override void Execute(CodeActivityContext context)
        {
            // TODO: VALIDATE ENTITY OR THROW EXCEPTION


            Mercury.Server.Workflows.UserInteractions.Request.PromptUserRequest request;

            request = new Mercury.Server.Workflows.UserInteractions.Request.PromptUserRequest(

                PromptType.Get(context),

                PromptImage.Get(context),

                PromptTitle.Get(context),

                PromptMessage.Get(context)

                );

            request.AllowCancel = AllowCancel.Get(context);

            if (PromptSelectionItems.Get(context) != null)
            {
                request.SelectionItems = PromptSelectionItems.Get(context);
            }


            UserInteractionRequest.Set(context, request);

            return;
        }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AllowBlank.GetHashCode();
         hashCode = (hashCode * 397) ^ (Error != null ? Error.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ErrorTitle != null ? ErrorTitle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ErrorStyleValue.GetHashCode();
         hashCode = (hashCode * 397) ^ OperatorValue.GetHashCode();
         hashCode = (hashCode * 397) ^ (Prompt != null ? Prompt.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PromptTitle != null ? PromptTitle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ShowDropDown.GetHashCode();
         hashCode = (hashCode * 397) ^ ShowErrorMessage.GetHashCode();
         hashCode = (hashCode * 397) ^ ShowInputMessage.GetHashCode();
         hashCode = (hashCode * 397) ^ ValidationTypeValue.GetHashCode();
         hashCode = (hashCode * 397) ^ (Formula1 != null ? Formula1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Formula2 != null ? Formula2.GetHashCode() : 0);
         return(hashCode);
     }
 }