/// <summary> /// Returns elevator panel control object /// </summary> public static IPanel GetPanel() { lock (s_mutex) { if (s_inst == null) s_inst = new Elevator(); } return s_inst; }
/// <summary> /// Returns elevator car control object /// </summary> public static ICar GetCar() { lock (s_mutex) { if (s_inst == null) s_inst = new Elevator(); } return s_inst; }