Skip to main content

querypanel-class

Korzh.EasyQuery.WinForms.QueryPanel control - the main GUI control for query building.

public class Korzh.EasyQuery.WinForms.QueryPanel
: XPanel

Assembly: Korzh.EasyQuery.WinForms.dll

Constructors

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

Properties

NameTypeDescription
ActiveboolGets or sets a value indicating whether this Korzh.EasyQuery.WinForms.QueryPanel is active.
ActiveRowConditionRowGets currently active row.
AppearanceQueryPanel.QueryPanelViewOptionsGets the Korzh.EasyQuery.WinForms.QueryPanel.QueryPanelViewOptions object.
BoolValuesMenuListValueItemListGets the list of boolean values used in menus.
ModelDataModelGets the Korzh.EasyQuery.DataModel object
QueryQueryGets or sets the Korzh.EasyQuery.Query object.
RowsConditionRowListGets list of condition rows.
ShowQueryParametersboolGets or sets a value indicating whether query parameters will be shown as "extra" conditions to set the parameters' values.
SpecDateValuesMenuListValueItemListGets the list of special date values (like "Today") used in menus.
SpecTimeValuesMenuListValueItemListGets the list of special time values (like "Noon") used in menus.

Events

NameTypeDescription
ConditionRenderConditionRenderEventHandlerThis event is raised when the row is already rendered. It is used to change some UI of specific rows.
CreateValueElementCreateValueElementEventHandlerOccurs when a value element (the last one) of the condition is created. This event allows to change the type of the value element at run-time
ListRequestListRequestEventHandlerOccurs when the Korzh.EasyQuery.WinForms.QueryPanel object needs the content of some custom list
SubQueryDialogClosedEventHandlerOccurs after sub query dialog has been closed.
SubQueryDialogOpeningEventHandlerOccurs before opening of sub query dialog.
ValueRequestValueRequestEventHandlerOccurs when there is a need to get value from user. For example when conditions has an entity attribute with EasyData.CustomValueEditor object.

Methods

NameTypeDescription
AddSimpleCondition()voidAdds the Korzh.EasyQuery.Condition.
ApplyFormats()voidApplies the formats used in panel to all rows.
Arrange()voidArranges rows in the panel.
CheckDataModel()voidChecks the Korzh.EasyQuery.DataModel object. Generates an exception if Korzh.EasyQuery.WinForms.QueryPanel.Model property has null value.
CheckQuery()voidChecks the Korzh.EasyQuery.Query object. Generates an exception if Korzh.EasyQuery.WinForms.QueryPanel.Query property has null value.
CoreAddConditionGroup(Condition parent, int condIndex)voidCore procedure that adds new Korzh.EasyQuery.WinForms.ConditionGroupRow object.
CoreAddSimpleCondition(Condition parent, int condIndex, EntityAttr attr)ConditionCore procedure that adds new Korzh.EasyQuery.WinForms.SimpleConditionRow object.
CoreAddSimpleConditionThroughUI(string attrId)voidProcesses a click on "addition row".
CoreEndUpdate()voidPerforms necessary adjustments on update finish.
CreateAppearance()XPanel.XViewOptionsCreates the appearance.
CreateRowList()XRowListCreates the row list.
Dispose(bool disposing)voidClean up any resources being used.
DoAction(object sender, string actionName, object data)voidHandles Action event.
DoListRequest(ListXElement element, string listName)voidVirtual method for filling the list of Korzh.EasyQuery.WinForms.ListXElement.
DoQueryConditionsChanged(object sender, ConditionsChangeEventArgs e)voidHandles Query.ConditionsChanged event and refreshes Korzh.EasyQuery.WinForms.QueryPanel object accordingly.
MoveRowDown(int index)voidMoves the row to one position down (taking into account the level of other rows).
MoveRowUp(int index)voidMoves the row to one position up (taking into account the level of other rows).
OnCreateControl()voidRaises the event.
OnKeyDown(KeyEventArgs e)voidRaises the key down event.
OnListRequest(ListRequestEventArgs e)voidRaises the ListRequest event.
OnRowAdded(XRow row)voidCalled when new row was added into the panel.
OnRowListChanged()voidCalled when list of rows was changed.
OnValueRequest(ValueRequestEventArgs e)voidRaises the ValueRequest event.
RecreateRootRow()voidCreates the root row.
ScrollAddRowIntoView()voidScrolls the "click here to add..." row into view.
SetRowsWidth(int width)voidSets the width of the rows.
ShiftRowLevel(int rowIndex, bool up)voidShifts the row level (taking into account the level of other rows)
UpdateModelInfo()voidUpdates all information based on data model information (such as list of entities).