예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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;
 }