protected ListMassInputViewModel(bool canHandleHotKeys) { _canHandleHotKeys = canHandleHotKeys; Items = new DirtyCollection <T>(); _fields = new Lazy <ObservableCollection <DataField> >( () => new ObservableCollection <DataField>( GetFields(typeof(T)) .Where(f => !ExcludedFields.Any(e => e.Equals(f.FieldName, StringComparison.OrdinalIgnoreCase))) .Select((f, i) => new { f, i }) .OrderBy(t => GetSortingOrder(t.f, t.i)) .Select(t => t.f)), LazyThreadSafetyMode.ExecutionAndPublication); CreateMenu(); }
public ArtItem() { _fields = new Lazy <ObservableCollection <DataField> >( () => new ObservableCollection <DataField>(GetFields(typeof(ArtItem)).Where(f => !ExcludedFields.Any(e => e.Equals(f.FieldName, StringComparison.OrdinalIgnoreCase)))), LazyThreadSafetyMode.ExecutionAndPublication); SKUList = new SkuListMassInputViewModel(false); Art2GroupList = new Art2GroupListMassInputViewModel(false); }