Beispiel #1
0
        public static void SetReferenceIds(this IPropertyProvider properties, string key, params Guid[] values)
        {
            var array = values
                        .Where(item => item != ProjectDOM.RESETTODEFAULT)
                        .Select(item => _ToNodeReference(item))
                        .ToArray();

            if (array.Length == 0)
            {
                array = null;
            }

            properties.SetArray(key, array);
        }
Beispiel #2
0
        protected void SetArray <TValue>(TValue[] array) where TValue : IConvertible
        {
            var xarray = array?.Select(item => item.ConvertToString())
                         .ToArray();

            var changed = _Properties.SetArray(SerializationKey, xarray);

            CopyValueToInstance();

            if (changed)
            {
                RaiseValueChanged();
            }
        }
Beispiel #3
0
 public bool SetArray(string serializationKey, string[] array)
 {
     return(_Current.SetArray(serializationKey, array));
 }