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

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

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

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