/// <summary> /// Adds a query command action. /// </summary> /// <param name="action"> The QueryCommandAction type.</param> public void AddQueryCommandAction(QueryCommandAction action) { _commands.Add(action); }
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 = ""; }