Skip to main content

entitiespanel-class

A panel that contains and displays model's structure of entities and attributes.

public class Korzh.EasyQuery.WinForms.EntitiesPanel
: Panel

Assembly: Korzh.EasyQuery.WinForms.dll

Constructors

NameTypeDescription
EntitiesPanel()voidInitializes a new instance of the Korzh.EasyQuery.WinForms.EntitiesPanel class.

Properties

NameTypeDescription
FilterBehaviorFilterOptionsGets 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.
ImageAddColumnsImageGets or sets the image for "Add Columns" button.
ImageAddConditionsImageGets or sets the image for "Add Conditions" button.
ImageSelectAllImageGets or sets the image for "Select All" button.
ImageSelectNoneImageGets or sets the image for "Select None" button.
ModelDataModelGets or sets the Korzh.EasyQuery.DataModel object .
QueryQueryGets or sets the Korzh.EasyQuery.Query object.
ShowAttributesShowAttrOptionsGets or sets a value indicating which attributes should be shown in the control.
ShowClearSelectionButtonboolGets or sets a value indicating whether to show "Clear selection" button.
ShowColumnsButtonboolGets or sets a value indicating whether to show "Add columns" button.
ShowConditionsButtonboolGets or sets a value indicating whether to show "Add conditions" button.
ShowFilterboolGets or sets a value indicating whether to show a filter panel.
ShowSelectAllButtonboolGets or sets a value indicating whether to show "Select all" button.
TextsTextStorageGets an instance of Korzh.Utils.TextStorage object object which holds all text resources used in Korzh.EasyQuery.WinForms.QueryPanel object
TreeBorderStyleBorderStyleGets or sets a value indicating which attributes should be shown in the control.

Events

NameTypeDescription
NodeAddingNodeAddingEventHandlerOccurs when the new attribute node is to be added to the tree.

Methods

NameTypeDescription
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).