Пример #1
0
        public DictionaryObjectTreeItem(ObjectTreeItem parent, string propertyName, DictionaryData source, int depth) : base(parent, propertyName, source)
        {
            var builder = new List <ObjectTreeItem>(source.Dictionary.Count);

            foreach (var item in source.Dictionary)
            {
                builder.Add(StateFormatter.ToTreeHierarchy(this, item.Value, depth + 1, Convert.ToString(item.Key)));
            }
            Children = builder.ToArray();
        }
Пример #2
0
        public StateObjectTreeItem(ObjectTreeItem parent, string propertyName, StateObjectData source, int depth) :
            base(parent, propertyName, source)
        {
            var properties = new List <ObjectTreeItem>(source.Properties.Count);

            foreach (var item in source.Properties)
            {
                properties.Add(StateFormatter.ToTreeHierarchy(this, item.Value, depth + 1, item.Key));
            }
            Children = properties.ToArray();
        }
Пример #3
0
        public ListObjectTreeItem(ObjectTreeItem parent, string propertyName, ListData source, int depth) :
            base(parent, propertyName, source)
        {
            var builder = new List <ObjectTreeItem>(source.List.Length);

            foreach (var item in source.List)
            {
                builder.Add(StateFormatter.ToTreeHierarchy(this, item, depth + 1, null));
            }
            Children = builder.ToArray();
        }
Пример #4
0
 public DifferenceItemContainer(DifferenceItem[] children, ObjectTreeItem current, ObjectTreeItem next, DiffType diffType) : base(current, next, diffType)
 {
     Children = children;
 }
Пример #5
0
 public DifferenceItem(ObjectTreeItem current, ObjectTreeItem next, DiffType diffType)
 {
     Current  = current;
     Next     = next;
     DiffType = diffType;
 }
Пример #6
0
 public ObjectTreeItem(ObjectTreeItem parent, string propertyName, ObjectData source)
 {
     Parent       = parent;
     PropertyName = propertyName;
     Source       = source;
 }
Пример #7
0
 public PrimitiveObjectTreeItem(object value, ObjectTreeItem parent, string propertyName, ObjectData source) : base(parent, propertyName, source)
 {
     Value = value;
 }