DataSourceEditor(DataSource datasource, GeoCalc.ObjectType objectType, Form parent, String name, SearchFilter filter, String defaultIssuer, String defaultCode, GeoCalc.ObjectType defaultType, bool isLocked, bool defaultToAll = false)
DataSourceEditor(DataSource datasource, GeoCalc.ObjectType objectType, IntPtr parent, String name, SearchFilter filter, String defaultIssuer, String defaultCode, GeoCalc.ObjectType defaultType, bool isLocked, bool defaultToAll = false)
The DataSourceEditor constructor creates a new instance of the DataSourceEditor class. There are two signatures for the constructor, which allow you to provide the parent window for the editor as either a Form or a handle.
Parameters:
datasource - the DataSource to be displayed in the editor
objectType - the type(s) of objects to show in the editor
parent - a reference to the parent window for the editor (either a Form or an IntPtr handle)
name - the title to show at the top of the dialog
filter - a SearchFilter to limit what objects are shown in the dialog
defaultIssuer - the issuer of the default DataSource object to be selected when the dialog opens (optional; must be used in conjunction with defaultCode)
defaultCode - the code of the default DataSource object to be selected when the dialog opens (optional; must be used in conjunction with defaultIssuer)
defaultType - the type to show by default, or more than one is specified
isLocked - whether the dialog should prevent editing
only two required arguments for this constructor, which give, and the ObjectType for the objects that should be displayed in the dialog. The remaining parameters can be used to specify the parent window for the dialog, the name of the dialog, and the issuer, code, ObjectType that identify the object that should be selected when the dialog is initially displayed, and if well know objects are editable. This constructor will not display the dialog.