public ViewLevelViewModel Initialize(List <Group> g, ViewLevel vl = null) { Groups = SelectableGroup.Convert(g); if (vl != null) { theViewlevel = vl; SelectTheViewLevelsGroup(); } return(this); }
public GroupViewModel(List <Group> gs, Group g) { Groups = SelectableGroup.Convert(gs); Group = g; if (Group != null) { var t = Groups.SingleOrDefault(x => x.ID == Group.ID); if (t != null) { Groups.Remove(t); } } }