public override Argument[] GetArguments()
        {
            ArrayList arguments = new ArrayList();

            Argument arg = new Argument();
            arg.Name = "SessionTransport.SessionName";
            arguments.Add(arg);

            if ( arguments.Count == 0 )
            {
                return null;
            }
            else
            {
                return (Argument[])arguments.ToArray(typeof(Argument));
            }
        }
        /// <summary>
        /// Gets the arguments.
        /// </summary>
        /// <returns> An Argument type array.</returns>
        public override Argument[] GetArguments()
        {
            ArrayList arguments = new ArrayList();

            foreach ( TransformAction action in this.Headers )
            {
                TransformValue tvalue = null;

                if ( action is UpdateTransformAction  )
                {
                    tvalue = ((UpdateTransformAction)action).Value;
                }
                if ( action is AddTransformAction  )
                {
                    tvalue = ((AddTransformAction)action).Value;
                }
                if ( tvalue is DefaultTransformValue )
                {
                    if ( ((DefaultTransformValue)tvalue).EnabledInputArgument )
                    {
                        Argument arg = new Argument();
                        arg.Name = action.Name;
                        arguments.Add(arg);
                    }
                }
            }

            if ( arguments.Count == 0 )
            {
                return null;
            }
            else
            {
                return (Argument[])arguments.ToArray(typeof(Argument));
            }
        }
        /// <summary>
        /// Gets the arguments.
        /// </summary>
        /// <returns> An Argument type array.</returns>
        public override Argument[] GetArguments()
        {
            ArrayList arguments = new ArrayList();

            foreach ( FormField formField in this.FormFields )
            {
                if ( formField.TransformValue is DefaultTransformValue )
                {
                    if ( ((DefaultTransformValue)formField.TransformValue).EnabledInputArgument )
                    {
                        Argument arg = new Argument();
                        arg.Name = formField.FieldName;
                        arguments.Add(arg);
                    }
                }
            }

            if ( arguments.Count == 0 )
            {
                return null;
            }
            else
            {
                return (Argument[])arguments.ToArray(typeof(Argument));
            }
        }
        private void DisplayRequestResponseResult(object sender, RequestStartEndEventArgs e)
        {
            try
            {
                if ( e.CurrentIndex == _requestResponseIndex )
                {
                    panel.Controls.Clear();

                    startY = 12;

                    Argument arg = new Argument();
                    arg.Name = "Response Result";
                    arg.Value = e.Request.WebResponse.HttpBody;
                    arg.DesignProperty = new ArgumentProperty();
                    arg.DesignProperty.DesignerControlType = ArgumentProperty.DesignerControl.HtmlEditor;
                    Control control = CreateDesignerControl(e.CurrentIndex,arg);
                    control.Width = 400;
                    control.Height = 400;
                    control.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Bottom;

                    // Label
                    Label label = new Label();
                    label.Location = new System.Drawing.Point(startX, startY);
                    label.Name = "lbl" + arg.Name;

                    if ( arg.DesignProperty.Label.Length > 0 )
                    {
                        label.Text = arg.DesignProperty.Label;
                    }
                    else
                    {
                        label.Text = arg.Name;
                    }

                    if ( control != null )
                    {
                        startY += control.Size.Height + 10;

                        panel.Controls.Add(label);
                        panel.Controls.Add(control);
                    }

                    ((BasicHtmlEditorControl)control).LoadDocument(e.Request.WebResponse.HttpBody);
                    ((BasicHtmlEditorControl)control).IsDesignMode = false;
                    ((BasicHtmlEditorControl)control).ToolbarVisible = false;
                    this.panel1.Text = "";
                    this.panel.Enabled = true;
                    this.btnRun.Enabled = false;
                    this.btnClose.Enabled = true;
                    this.btnNextRequest.Enabled = false;
                }
            }
            catch ( Exception ex )
            {
                MessageBox.Show(ex.Message, AppLocation.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        /// <summary>
        /// Creates a designer control.
        /// </summary>
        /// <param name="webRequestIndex"> The web request index.</param>
        /// <param name="argument"> An argument.</param>
        /// <returns>A control.</returns>
        private Control CreateDesignerControl(int webRequestIndex, Argument argument)
        {
            Control control = null;

            switch ( argument.DesignProperty.DesignerControlType )
            {
                case ArgumentProperty.DesignerControl.TextBox:
                    // Text
                    TextBox text = new TextBox();
                    text.Location = new System.Drawing.Point(startX + 110, startY);
                    text.Name = "txt" + argument.Name;
                    text.Size = argument.DesignProperty.Size;
                    text.PasswordChar = argument.DesignProperty.PasswordChar;
                    text.Multiline = argument.DesignProperty.Multiline;
                    text.ReadOnly = argument.DesignProperty.ReadOnly;
                    text.WordWrap = argument.DesignProperty.WordWrap;
                    text.ForeColor = argument.DesignProperty.ForeColor;
                    text.Font = argument.DesignProperty.Font;
                    control = text;
                    break;
                case ArgumentProperty.DesignerControl.RichTextBox:
                    // Text
                    RichTextBox rtext = new RichTextBox();
                    rtext.Location = new System.Drawing.Point(startX + 110, startY);
                    rtext.Name = "txt" + argument.Name;
                    rtext.Size = argument.DesignProperty.Size;
                    rtext.Multiline = argument.DesignProperty.Multiline;
                    rtext.ReadOnly = argument.DesignProperty.ReadOnly;
                    rtext.WordWrap = argument.DesignProperty.WordWrap;
                    rtext.ForeColor = argument.DesignProperty.ForeColor;
                    rtext.Font = argument.DesignProperty.Font;
                    control = rtext;
                    break;
                case ArgumentProperty.DesignerControl.DropDownList:
                    ComboBox comboList = new ComboBox();
                    comboList.Location = new System.Drawing.Point(startX + 110, startY);
                    comboList.Name = "txt" + argument.Name;
                    comboList.Size = argument.DesignProperty.Size;
                    comboList.ForeColor = argument.DesignProperty.ForeColor;
                    comboList.Font = argument.DesignProperty.Font;
                    comboList.DropDownStyle = ComboBoxStyle.DropDownList;
                    LoadComboValues(webRequestIndex, comboList, argument.Name);
                    control = comboList;
                    break;
                case ArgumentProperty.DesignerControl.DropDown:
                    ComboBox combo = new ComboBox();
                    combo.Location = new System.Drawing.Point(startX + 110, startY);
                    combo.Name = "txt" + argument.Name;
                    combo.Size = argument.DesignProperty.Size;
                    combo.ForeColor = argument.DesignProperty.ForeColor;
                    combo.Font = argument.DesignProperty.Font;
                    combo.DropDownStyle = ComboBoxStyle.DropDown;
                    LoadComboValues(webRequestIndex, combo, argument.Name);
                    control = combo;
                    break;
                case ArgumentProperty.DesignerControl.HtmlEditor:
                    BasicHtmlEditorControl htmlEditor = new BasicHtmlEditorControl();
                    htmlEditor.Location = new System.Drawing.Point(startX + 110, startY);
                    htmlEditor.Name = "txt" + argument.Name;
                    htmlEditor.Size = argument.DesignProperty.Size;
                    htmlEditor.ForeColor = argument.DesignProperty.ForeColor;
                    htmlEditor.Font = argument.DesignProperty.Font;
                    control = htmlEditor;
                    break;
                case ArgumentProperty.DesignerControl.CheckBox:
                    CheckBox checkBox = new CheckBox();
                    checkBox.Location = new System.Drawing.Point(startX + 110, startY);
                    checkBox.Name = "txt" + argument.Name;
                    checkBox.Size = argument.DesignProperty.Size;
                    checkBox.ForeColor = argument.DesignProperty.ForeColor;
                    checkBox.Font = argument.DesignProperty.Font;
                    control = checkBox;
                    break;
            }

            return control;
        }
        public override Argument[] GetArguments()
        {
            ArrayList arguments = new ArrayList();

            Argument arg = new Argument();
            arg.Name = "DatabaseTransport.ConnectionString";
            arguments.Add(arg);

            arg = new Argument();
            arguments.Add("DatabaseTransport.Query");
            arguments.Add(arg);

            if ( arguments.Count == 0 )
            {
                return null;
            }
            else
            {
                return (Argument[])arguments.ToArray(typeof(Argument));
            }
        }
 /// <summary>
 /// Inserts an argument.
 /// </summary>
 /// <param name="index"> The index to insert at.</param>
 /// <param name="argument"> The argument to add.</param>
 public void InsertArgument(int index, Argument argument)
 {
     _list.Insert(index, argument);
 }
 /// <summary>
 /// Adds an argument array.
 /// </summary>
 /// <param name="argument"> The argument to add.</param>
 public void AddArguments(Argument[] argument)
 {
     _list.AddRange(argument);
 }
 /// <summary>
 /// Adds an argument.
 /// </summary>
 /// <param name="argument"> The argument to add.</param>
 public void AddArgument(Argument argument)
 {
     _list.Add(argument);
 }
 /// <summary>
 /// Updates the argument.
 /// </summary>
 /// <param name="index"> The request args index.</param>
 /// <param name="argument"> The argument type.</param>
 public void UpdateArgument(int index, Argument argument)
 {
     if ( index > -1 )
     {
         if ( argument != null )
         {
             // Update request index.
             _list[index] = argument;
         }
     }
 }
        /// <summary>
        /// Gets the arguments.
        /// </summary>
        /// <returns> An Argument type array.</returns>
        public override Argument[] GetArguments()
        {
            ArrayList arguments = new ArrayList();

            if ( this.UpdateTransformAction.Value is DefaultTransformValue )
            {
                if ( ((DefaultTransformValue)UpdateTransformAction.Value).EnabledInputArgument )
                {
                    Argument arg = new Argument();
                    arg.Name = UpdateTransformAction.Name;
                    arguments.Add(arg);
                }
            }

            if ( arguments.Count == 0 )
            {
                return null;
            }
            else
            {
                return (Argument[])arguments.ToArray(typeof(Argument));
            }
        }