RingSoft.DbLookup.Controls.WPF Namespace
RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

LookupWindow Constructor (LookupDefinitionBase, Boolean, Boolean, String, IAutoFillControl, PrimaryKeyValue)

Initializes a new instance of the LookupWindow class.

Namespace:  RingSoft.DbLookup.Controls.WPF
Assembly:  RingSoft.DbLookup.Controls.WPF (in RingSoft.DbLookup.Controls.WPF.dll)

Syntax


public LookupWindow(
	LookupDefinitionBase lookupDefinition,
	bool allowAdd,
	bool allowView,
	string initialSearchFor,
	IAutoFillControl autoFillControl,
	PrimaryKeyValue readOnlyValue
)
Public Sub New ( _
	lookupDefinition As LookupDefinitionBase, _
	allowAdd As Boolean, _
	allowView As Boolean, _
	initialSearchFor As String, _
	autoFillControl As IAutoFillControl, _
	readOnlyValue As PrimaryKeyValue _
)
public:
LookupWindow(
	LookupDefinitionBase^ lookupDefinition, 
	bool^ allowAdd, 
	bool^ allowView, 
	String^ initialSearchFor, 
	IAutoFillControl^ autoFillControl, 
	PrimaryKeyValue^ readOnlyValue
)

Parameters

lookupDefinition
Type: RingSoft.DbLookup.Lookup..::..LookupDefinitionBase
The lookup definition.
allowAdd
Type: Boolean
if set to true [allow add].
allowView
Type: Boolean
if set to true [allow view].
initialSearchFor
Type: String
The initial search for.
autoFillControl
Type: RingSoft.DbLookup.AutoFill..::..IAutoFillControl
The automatic fill control.
readOnlyValue
Type: RingSoft.DbLookup..::..PrimaryKeyValue
The read only value.

Exceptions


ExceptionCondition
ArgumentExceptionLookup definition does not have any visible columns defined or its initial sort column is null.