public void CreateBadge(int badgeNum, List <string> list)
        {
            Badge newBadge = new Badge(badgeNum, list);

            _badgeDictionary.Add(newBadge.BadgeID, newBadge.AccessList);
        }
        //CRUD
        //Create New Badge
        public void AddBadgesToTheList(Badge badge)
        {
            //count is the int part of it

            _badgeList.Add(badge.Id, badge.Doors);
        }
Beispiel #3
0
        public void DeleteAllDoors(int badgeID)
        {
            Badge badge = _badges[badgeID];

            badge.doorNames = new List <string>();
        }
Beispiel #4
0
 public void Add(Badge badge)
 {
     _badges.Add(badge.badgeID, badge);
 }
Beispiel #5
0
 public void Add(int badgeID, Badge badge)
 {
     _badges.Add(badgeID, badge);
 }
Beispiel #6
0
 public bool AddNewBadge(Badge badge)
 {
     _directory[badge.BadgeID] = badge.Doors;
     return(_directory.ContainsKey(badge.BadgeID));
 }