public static MedEquipmentItemRepository GetInstance()
 {
     if (instance == null)
     {
         instance = new MedEquipmentItemRepository();
     }
     return(instance);
 }
Esempio n. 2
0
        public ItemCount Read(uint id)
        {
            List <string[]> temp = Persistence.ReadEntryByPrimaryKey(path, id.ToString());

            string[] ids = temp[0][2].Split(' ');
            List <MedEquipmentItem> mei = new List <MedEquipmentItem>();

            foreach (string s in ids)
            {
                mei.Add(MedEquipmentItemRepository.GetInstance().Read(uint.Parse(s)));
            }
            return(new ItemCount(uint.Parse(temp[0][0]), uint.Parse(temp[0][3]), uint.Parse(temp[0][1]), mei.ToArray()));
        }