예제 #1
0
 public void getGroGroups()
 {
     GroGroups grogroup1 = new GroGroups();
     grogroup1.GroupId = "LIBRARY";
     grogroup1.GroupName = "Library";
     Items.Add(grogroup1);
     GroGroups grogroup2 = new GroGroups();
     grogroup2.GroupId = "DATACENTER";
     grogroup2.GroupName = "Data Center";
     Items.Add(grogroup2);
     GroGroups grogroup3 = new GroGroups();
     grogroup3.GroupId = "SECURITY";
     grogroup3.GroupName = "Secuirty";
     Items.Add(grogroup3);
 }
예제 #2
0
        public void getSpecialBadge()
        {
            SpecialtyBadges badge1 = new SpecialtyBadges();
            badge1.badgeName = "Library Security Badge";
            badge1.template = "Library Security Badge";
            GroGroups grogroup1 = new GroGroups();
            grogroup1.GroupId = "LIBRARY";
            grogroup1.GroupName = "Library";
            badge1.Items.Add(grogroup1);
            GroGroups grogroup11 = new GroGroups();
            grogroup11.GroupId = "SECURITY";
            grogroup11.GroupName = "Secuirty";
            badge1.Items.Add(grogroup11);

            SpecialtyBadges badge2 = new SpecialtyBadges();
            badge2.badgeName = "Data Center Badge";
            badge2.template = "Data Center Badge";
            GroGroups grogroup2 = new GroGroups();
            grogroup2.GroupId = "DATACENTER";
            grogroup2.GroupName = "Data Center";
            badge2.Items.Add(grogroup2);

            List<SpecialtyBadges> specialtybadge = new List<SpecialtyBadges>(10);
            specialtybadge.Add(badge1);
            specialtybadge.Add(badge2);
            allBadges = specialtybadge;
        }