System.Object
Eplan.EplApi.Base.FileSelectDecisionContext
System.Object
Eplan.EplApi.Base.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];
Name | Description | |
---|---|---|
FileSelectDecisionContext Constructor | Overloaded. |
Name | Description | |
---|---|---|
AllowMultiSelect | Set or get the flag for multi selection. | |
CustomDefaultPath | Set 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. | |
DefaultExtension | The default extension of the files to select. | |
OpenFileFlag | Set 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. | |
Title | The title for the decider. |
Name | Description | |
---|---|---|
AddFilter | Add a filter which files are shown. When the user selects one filter in the decider dialog, only files of this type are displayed. | |
Dispose | Destructor for deterministic finalization of FileSelectDecisionContext object. | |
GetFiles | Get all the files the user has selected in the decider dialog. |