//        /// <summary>
 //        /// Gets or sets if the form fields are enabled for Windows Form Generation.
 //        /// </summary>
 //        public bool IsWindowsFormEnabled
 //        {
 //            get
 //            {
 //                return _isWindowsFormEnabled;
 //            }
 //            set
 //            {
 //                _isWindowsFormEnabled = value;
 //            }
 //        }
 /// <summary>
 /// Adds a header transform action.
 /// </summary>
 /// <param name="formField"> The FormField type.</param>
 public void AddFormField(FormField formField)
 {
     _formFields.Add(formField);
 }
        private void UpdateFormField()
        {
            FillFormTransform transform = (FillFormTransform)base.WebTransform;
            FormField formField = new FormField();

            // Add Form Field
            formField.FieldName = this.txtFormField.Text;
            formField.Index = Convert.ToInt32(this.numIndex.Value);
            formField.TransformValue = TransformValue;
            formField.Description = this.txtTransformDescription.Text;// + " to fill form field \"" + this.txtFormField.Text + "\"";

            if ( _isEdit )
            {
                ListViewItem updateItem = lstActions.Items[_editIndex];
                updateItem.Text = formField.FieldName;
                updateItem.SubItems[1].Text = formField.Index.ToString();
                updateItem.SubItems[2].Text = formField.Description;
                updateItem.Tag = formField;

                this.btnUpdate.Text = "Add";
                _isEdit = false;
            }
            else
            {
                // Add List View Item
                #region Add List View Item
                ListViewItem listItem = new ListViewItem();
                listItem.Text = formField.FieldName;
                listItem.SubItems.Add(formField.Index.ToString());
                listItem.SubItems.Add(formField.Description);
                listItem.Tag = formField;

                lstActions.Items.Add(listItem);
                #endregion
            }

            this.txtFormField.Text = "";
            this.txtTransformDescription.Text = "";
            this.numIndex.Value = 0;
        }