public dialogSelectFile(IPlatform platform, String path, dialogSelectFileMode mode, String extension, String extraComment) : base(platform) { dialogFormatSettings format = new dialogFormatSettings(dialogStyle.blueDialog, dialogSize.fullScreenBox); format.apply(this, platform); selector = new smartFilePathSelector(path, mode, extension, this.height, this.width, 0, 3); selector.doShowTitle = false; switch (mode) { case dialogSelectFileMode.selectFileToOpen: layoutTitleMessage = "Select file to open"; break; case dialogSelectFileMode.selectFileToSave: layoutTitleMessage = "Select file to save"; break; case dialogSelectFileMode.selectPath: layoutTitleMessage = "Select directory path"; break; } layoutStatusMessage = extraComment; addLayer(selector, layerBlending.transparent, 100); init(platform); }
public smartScreenFileSelector(T __app, string __title, String __path, dialogSelectFileMode __mode, String __extension) : base(__app, __title) { filePathSection = new smartFilePathSelector(__path, __mode, __extension, application.platform.height, application.platform.width, 0, 0); init(__app.platform); }