Example #1
0
        public static DoorSwitch Singleton()
        {
            if (_instance == null)
            {
                _instance = new DoorSwitch();
            }

            if (_doorSwitchItems == null)
            {
                _doorSwitchItems = new List<DoorSwitchDTO>();
            }
            return _instance;
        }
Example #2
0
        public static DoorSwitch Singleton()
        {
            if (_instance == null)
            {
                _instance = new DoorSwitch();
            }

            if (_doorSwitchItems == null)
            {
                _doorSwitchItems = new List <DoorSwitchDTO>();
            }
            return(_instance);
        }