public void Bind(TextShapeViewModel text, object db, object r) { var properties = (ImmutableArray <PropertyViewModel>)db; var record = (RecordViewModel)r; var tbind = TextBinding.Bind(text, properties, record); text.SetProperty(nameof(TextShapeViewModel.Text), tbind); }
/// <inheritdoc/> public void Bind(ITextShape text, object db, object r) { var properties = (ImmutableArray <IProperty>)db; var record = (IRecord)r; var tbind = TextBinding.Bind(text, properties, record); text.SetProperty(nameof(ITextShape.Text), tbind); }
public void Bind(TextShapeViewModel?text, object?db, object?r) { if (text is null) { return; } var properties = (ImmutableArray <PropertyViewModel>?)db; var record = (RecordViewModel?)r; var value = TextBinding.Bind(text, properties, record); text.SetProperty(nameof(TextShapeViewModel.Text), value); }