public void AddStorageInstance(StorageInstance instance) { AuditSopClass sopClass; if (SopClassDictionary.TryGetValue(instance.SopClass.Uid, out sopClass)) { sopClass.NumberOfInstances++; } else { sopClass = new AuditSopClass(instance.SopClass.Uid, 1); SopClassDictionary.Add(sopClass.UID, sopClass); } }
public void AddStorageInstance(StorageInstance instance) { AuditSopClass sopClass; if (SopClassDictionary.TryGetValue(instance.SopClass.Uid,out sopClass)) { sopClass.NumberOfInstances++; } else { sopClass = new AuditSopClass(instance.SopClass.Uid, 1); SopClassDictionary.Add(sopClass.UID, sopClass); } }