public override DataSourceString Execute(DatabaseUri databaseUri, BuildSourceField field, DataSourceString dataSource) { Assert.ArgumentNotNull(databaseUri, nameof(databaseUri)); Assert.ArgumentNotNull(field, nameof(field)); Assert.ArgumentNotNull(dataSource, nameof(dataSource)); var propertyType = dataSource["propertytype"] ?? string.Empty; var dialog = new PropertyTypeDialog(propertyType); if (AppHost.Shell.ShowDialog(dialog) != true) { return(null); } propertyType = dialog.PropertyType; SetDataSource(dataSource); if (string.IsNullOrEmpty(propertyType)) { dataSource.Remove("propertytype"); } else { dataSource["propertytype"] = propertyType; } return(dataSource); }
public override DataSourceString Execute(DatabaseUri databaseUri, BuildSourceField field, DataSourceString dataSource) { Assert.ArgumentNotNull(databaseUri, nameof(databaseUri)); Assert.ArgumentNotNull(field, nameof(field)); Assert.ArgumentNotNull(dataSource, nameof(dataSource)); var bindMode = dataSource["bindmode"] ?? string.Empty; var dialog = new BindModeDialog(bindMode); if (AppHost.Shell.ShowDialog(dialog) != true) { return(null); } bindMode = dialog.BindMode; SetDataSource(dataSource); if (string.IsNullOrEmpty(bindMode)) { dataSource.Remove("bindmode"); } else { dataSource["bindmode"] = bindMode; } return(dataSource); }