Click or drag to resize
CGUIiTwoPanelSelection Method (CGXNETCore, CLST, CLST, String)
General purpose two-panel selection.

Available since Oasis montaj version: 5.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
Takes as input two LSTs, one contains all available items, the second currently selected items. These are processed, and in the left panel are displayed all items in the first LST not in the selection LST, and on the right all items in the first LST which are in the selection LST. (Items in the selection LST NOT in the first LST are ignored). Once the user has finalized the selections, the final selections are returned in the selection LST. Selections and display are based on the <define>LST_ITEM_NAME</define> part of the LST item, but on export both the <define>LST_ITEM_NAME</define> and <define>LST_ITEM_VALUE</define> elements of the selected items from the first LST are transferred to the second list for output. The sConvertToCSV_LST and sConvertFromCSV_LST functions in lst.h can be used to convert the selection LSTs to forms that can be stored and retrieved from GX parameters (or REG or INI, etc.).
Syntax
public static int iTwoPanelSelection(
	CGXNETCore gxNetShared,
	CLST ls_tf,
	CLST ls_ts,
	string title
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
ls_tf
Type: GeoEngine.Core.GXNetXCLST
All available items for selection.
ls_ts
Type: GeoEngine.Core.GXNetXCLST
Selections (altered on output)
title
Type: SystemString
Title for dialog

Return Value

Type: Int32
0 - Ok 1 - Cancel
See Also