public BindableCollection <InputModel> Resolve(RootDto source, RootDisplayModel destination, BindableCollection <InputModel> destMember, ResolutionContext context) { BindableCollection <InputModel> result = new BindableCollection <InputModel>(); result.AddRange(source.DerivativeList.Select(p => new InputModel() { Name = p })); return(result); }
public RootEditorViewModel(RootDisplayModel model = null) { RootTypeList = typeof(RootType).ToList(); this.mRootSerivce = IoC.Get <IRootSerivce>(); if (model == null) { Model = new RootDisplayModel(); } else { Model = model; } }