public ProjectionControlVmD() { Title = "Design Title"; TitleX = "Design X"; TitleY = "Design Y"; ItemsX.ForEach(v => XSelectorVm.AddItem(v, v.ToString())); ItemsY.ForEach(v => YSelectorVm.AddItem(v, v.ToString())); }
public ProjectionControlVm(IEnumerable <int> keys) : this() { var keyLst = keys.ToList(); keyLst.ForEach(k => { XSelectorVm.AddItem(k, k.ToString()); YSelectorVm.AddItem(k, k.ToString()); }); }