public void AddFilter(ToolbarFilter filter) { if (filter != null) { this.Filters.Add(filter); } }
private static TextBox GetTextBox(ToolbarFilter rec) { TextBox txt = new TextBox(); txt.Name = rec.Name; txt.Foreground = Brushes.Black; txt.Width = 100; return(txt); }
public static ToolbarFilter New(string name, int orderNum, FilterTypeEnum type, string labelText = "", List <FilterOption> items = null) { ToolbarFilter filter = new ToolbarFilter(); filter.Name = name; filter.OrderNum = orderNum; filter.Type = type; filter.LabelText = labelText; filter.Items = items; return(filter); }