public void CreateRow(bool canDelete) { QueryBuilderMatchRow row = new QueryBuilderMatchRow(model); row.Show(); PackStart(row, false, false, 0); row.CanDelete = canDelete; row.AddRequest += OnRowAddRequest; row.RemoveRequest += OnRowRemoveRequest; }
public string BuildQuery(string join) { string query = null; for (int i = 0, n = Children.Length; i < n; i++) { QueryBuilderMatchRow match = Children[i] as QueryBuilderMatchRow; query += " " + match.Query + " "; if (i < n - 1) { query += join; } } return(query); }