Beispiel #1
0
        public ViewLevelViewModel Initialize(List <Group> g, ViewLevel vl = null)
        {
            Groups = SelectableGroup.Convert(g);

            if (vl != null)
            {
                theViewlevel = vl;
                SelectTheViewLevelsGroup();
            }

            return(this);
        }
Beispiel #2
0
        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);
                }
            }
        }