Exemplo n.º 1
0
 public static HospitalConfiguration GetInstance()
 {
     if (instance == null)
     {
         instance = new HospitalConfiguration();
     }
     return(instance);
 }
Exemplo n.º 2
0
        public static HospitalConfiguration SetInstance(HospitalConfiguration externalinstance)
        {
            if (instance != null)
            {
                return(instance);
            }
            instance = externalinstance;

            return(instance);;
        }