public HospitalCategory(HospitalRegistry registry)
 {
     if (registry == null)
     {
         return;
     }
     Registry = registry;
     Registry.HospitalCategories.Add(this);
 }
示例#2
0
 public HospitalPropertyItem(HospitalRegistry registry)
     : base(registry)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Hospital"/> class.
 /// </summary>
 /// <param name="registry">The registry.</param>
 public Hospital(HospitalRegistry registry)
     : base(registry)
 {
     registry.Hospitals.Add(this);
 }