private void UpdateTransformValue()
        {
            GmailSmtpTransform transform = (GmailSmtpTransform)base.WebTransform;

            QueryCommandAction action = new QueryCommandAction();
            action.Description = _description;
            action.Value = this.TransformValue;
            action.Name = string.Empty;

            if ( _isEdit )
            {
                ListViewItem updateItem = lvValues.Items[_editIndex];
                updateItem.Text = action.Description;
                updateItem.Tag = action;

                this.cmdAdd.Text = "&Add";

                _isEdit = false;
            }
            else
            {
                // Add List View Item
                #region Add List View Item
                ListViewItem listItem = new ListViewItem();
                listItem.Text = action.Description;
                listItem.Tag = action;

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

            _description = "";
        }
        private void UpdateTransformValue()
        {
            QueryTransform transform = (QueryTransform)base.WebTransform;
            transform.Transport = _transport;

            QueryCommandAction action = new QueryCommandAction();
            action.Description = this.txtTransformDescription.Text;
            action.Value = this.TransformValue;
            action.Name = string.Empty;

            if ( _isEdit )
            {
                ListViewItem updateItem = lstActions.Items[_editIndex];
                updateItem.Text = action.Description;
                updateItem.Tag = action;

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

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

            this.txtTransformDescription.Text = "";
        }
 /// <summary>
 /// Adds a query command action.
 /// </summary>
 /// <param name="action"> The QueryCommandAction type.</param>
 public void AddQueryCommandAction(QueryCommandAction action)
 {
     _commands.Add(action);
 }