コード例 #1
0
        public ClassItemViewModel(ClassItem item, ClassItemViewModel parent)
            : base(parent)
        {
            _Model = item;

            _Children = new Services.ObservableSortedList<ClassItemViewModel>(
                (from child in _Model.Children select new ClassItemViewModel(item, null)).ToList<ClassItemViewModel>(),
                new Comparers.ClassItemComparer()
            );
        }
コード例 #2
0
 public ClassItemViewModel(ClassItem item)
     : this(item, null)
 {
 }