Eplan Platform API
Eplan.EplApi.Base Namespace / ListSelectDecisionContext Class
Members Example

ListSelectDecisionContext Class
This class can be used for a standard Eplan decider
Inheritance Hierarchy

System.Object
   Eplan.EplApi.Base.ListSelectDecisionContext

Syntax
public class ListSelectDecisionContext 
Example
Example of using Decider class with a ListSelectDecisionContext :
StringCollection collection = new StringCollection();
collection.Add("Content 1");
collection.Add("Content 2");
collection.Add("Content 3");

ListSelectDecisionContext listSelectDecisionContext = new ListSelectDecisionContext(collection, "Content 2", "Dialog Title");

Decider oDecision = new Decider();
EnumDecisionReturn eAnswer = oDecision.Decide(listSelectDecisionContext);
if (eAnswer != EnumDecisionReturn.eOK)
{
    return false;
}

if (listSelectDecisionContext.AllowMultiSelect)
{
    StringCollection selectedEntries = listSelectDecisionContext.SelectedEntries;
}
else
{
    long index = listSelectDecisionContext.SelectedIndex;
    string strEntry = listSelectDecisionContext.SelectedEntry;
}

Public Constructors
 NameDescription
Public ConstructorOverloaded.   
Top
Public Properties
 NameDescription
Public PropertySet or get the flag for multi selection.  
Public PropertyGets all entries  
Public PropertyGets all selected entries (Use this property if multi selection is enabled)  
Public PropertyGets the selected entries  
Public PropertyGets the selected index from Entries  
Public PropertyThe title for the decider.  
Top
Public Methods
 NameDescription
Public MethodDestructor for deterministic finalization of ListSelectDecisionContext object.  
Top
See Also