Beispiel #1
0
 public VehicleWindow this[VehicleWindowIndex index]
 {
     get
     {
         VehicleWindow window = null;
         if (!this._vehicleWindows.TryGetValue(index, out window))
         {
             window = new VehicleWindow(this._owner, index);
             this._vehicleWindows.Add(index, window);
         }
         return(window);
     }
 }
Beispiel #2
0
        public VehicleWindow this[VehicleWindowIndex index]
        {
            get
            {
                if (!_vehicleWindows.TryGetValue(index, out VehicleWindow vehicleWindow))
                {
                    vehicleWindow = new VehicleWindow(_owner, index);
                    _vehicleWindows.Add(index, vehicleWindow);
                }

                return(vehicleWindow);
            }
        }