A panel that contains and displays model’s structure of entities and attributes.
public class Korzh .EasyQuery.WinForms.EntitiesPanel
Package: Korzh.EasyQuery.WinForms (targets: net461, net5.0-windows7.0, netcoreapp3.1)
Assembly: Korzh.EasyQuery.WinForms.dll
Name Type Description FilterBehavior FilterOptions Gets or sets a value indicating how to define does the entity or attribute name pass the filter - if it starts with the filter string or if it contains that string. ImageAddColumns ImageGets or sets the image for “Add Columns” button. ImageAddConditions ImageGets or sets the image for “Add Conditions” button. ImageSelectAll ImageGets or sets the image for “Select All” button. ImageSelectNone ImageGets or sets the image for “Select None” button. Model DataModel Gets or sets the Korzh.EasyQuery.DataModel object . Query Query Gets or sets the Korzh.EasyQuery.Query object. ShowAttributes ShowAttrOptions Gets or sets a value indicating which attributes should be shown in the control. ShowClearSelectionButton boolGets or sets a value indicating whether to show “Clear selection” button. ShowColumnsButton boolGets or sets a value indicating whether to show “Add columns” button. ShowConditionsButton boolGets or sets a value indicating whether to show “Add conditions” button. ShowFilter boolGets or sets a value indicating whether to show a filter panel. ShowSelectAllButton boolGets or sets a value indicating whether to show “Select all” button. Texts TextStorage Gets an instance of Korzh.Utils.TextStorage object object which holds all text resources used in Korzh.EasyQuery.WinForms.QueryPanel object TreeBorderStyle BorderStyleGets or sets a value indicating which attributes should be shown in the control.
Name Type Description NodeAdding NodeAddingEventHandlerOccurs when the new attribute node is to be added to the tree.
Name Type Description AddSelectedAttributesToColumns() voidAdds the selected attributes to the Columns’ list of associated Query. AddSelectedAttributesToConditions() voidAdds the selected attributes to the root predicate of associated Query. CheckDataModel() voidChecks the Korzh.EasyQuery.DataModel object. Generates an exception if Korzh.EasyQuery.WinForms.EntitiesPanel.Model property has null value. CheckQuery() voidChecks the query Korzh.EasyQuery.Query . Generates an exception if Query property has null value. ClearFilter() voidClears current filter (if any). ClearSelection() voidDeselect all items in the Entities tree. CoreClearSelection() voidClear selection (core virtual method). CoreFillEntityTree(TreeNodeCollection items, Entity parentEntity, bool keepSelection) voidFills the list (tree) of entities and their attributes. CoreSelectAll() voidSelects all items (core virtual method). DoTreeAfterCheck(object sender, TreeViewEventArgs e) voidPerforms necessary actions on some node checkbox check/uncheck. GetSelectedAttrs(MetaEntityAttrList attrList) intFills the attrList param with the attributes wich nodes are selected in the tree. OnNodeAdding(NodeAddingEventArgs e) voidRaises the Korzh.EasyQuery.WinForms.EntitiesPanel.NodeAdding event. OnSizeChanged(EventArgs e) voidOverrides System.Windows.Forms.Control.OnSizeChanged(System.EventArgs). UpdateModelInfo() voidUpdates all information based on data model information (such as list of entities).