Ejemplo n.º 1
0
        public StructViewModel(StructProperty property, ViewModelFactory factory)
            : base(property, factory)
        {
            string GetString() => Value?.Value?.ToString();

            FormatedString.Dispose();
            FormatedString = Property.OnChanged
                             .Select(x => GetString())
                             .ToReactiveProperty(GetString());
        }
Ejemplo n.º 2
0
        public ClassViewModel(ClassProperty property, ViewModelFactory factory)
            : base(property, factory)
        {
            string GetString()
            {
                return(Value?.Value?.ToString());
            }

            FormatedString.Dispose();
            FormatedString = Property.OnChanged
                             .Select(x => GetString())
                             .ToReactiveProperty(GetString());
        }