API Help
Eplan.EplApi.Base Namespace / FileSelectDecisionContext Class
Members Example

In This Topic
    FileSelectDecisionContext Class
    In This Topic
    This class can be used for an standard eplan decider
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.Base.FileSelectDecisionContext

    Syntax
    public class FileSelectDecisionContext 
    public ref class FileSelectDecisionContext 
    Example
    Example of using Decider class with a FileSelectDecisionContext :
    FileSelectDecisionContext fileContext = new FileSelectDecisionContext("ExlSheetSelector", EnumDecisionReturn.eCANCEL);
    fileContext.Title = "Select Excel file";
    fileContext.AllowMultiSelect = false;
    fileContext.DefaultExtension = "xls";
    fileContext.AddFilter("Excel 97 files (*.xls)", "*.xls");
    fileContext.AddFilter("Excel files (*.xlsx)", "*.xlsx");
    fileContext.AddFilter("All files (*.*)", "*.*");
    
    Decider oDecision = new Decider();
    EnumDecisionReturn eAnswer = oDecision.Decide(fileContext);
    if (eAnswer != EnumDecisionReturn.eOK)
    {
        return true;
    }
    string sExlFile = fileContext.GetFiles()[0];
    
    
    
    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public PropertySet or get the flag for multi selection.  
    Public PropertySet or get the CustomDefaultPath. This is the path the File Select Dialog opens first. The second time the path is used the user has selected the last time. Then the context menu "Set to standard" will select this path again.  
    Public PropertyThe default extension of the files to select.  
    Public PropertySet or get the openfileflag. Set this flag when you want to open a file Do not set it when you want to save a file.  
    Public PropertyThe title for the decider.  
    Top
    Public Methods
     NameDescription
    Public MethodAdd a filter which files are shown. When the user selects one filter in the decider dialog, only files of this type are displayed.  
    Public MethodDestructor for deterministic finalization of FileSelectDecisionContext object.  
    Public MethodGet all the files the user has selected in the decider dialog.  
    Top
    See Also