/// <summary> /// Updates list of supported data type for the current driver. /// </summary> /// <param name="driver">The driver.</param> private void UpdateDataTypes(DatasourceDriver driver) { var tool = Model.Tool as GisTool; if (tool == null) { return; } var p = tool.FindParameter <GdalRasterTool, string>(t => t.OutputType) as OptionsParameter; if (p == null) { return; } var ctrl = p.Control as IOptionsParameterControl; if (ctrl != null) { var types = driver.GetCreationDataTypes(); ctrl.SetOptions(types); } }