Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
    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);
    }