Exemplo n.º 1
0
        /// <summary>
        /// Initialises a new instance of the <see cref="FastestTimesModel"/> class and specifies
        /// the driver model provider.
        /// </summary>
        /// <param name="driverLocator">The driver model provider.</param>
        /// <exception cref="System.ArgumentNullException">
        /// Thrown when <paramref name="driverLocator"/> is <see langword="null"/>.
        /// </exception>
        public FastestTimesModel(IDriverModelLocator driverLocator)
        {
            Guard.NotNull(driverLocator, "driverLocator");

            DriverLocator = driverLocator;
            Builder = new FastestTimesModelBuilder(this);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initialises a new instance of the <see cref="SpeedCapturesModel"/> class and specifies
        /// the driver model provider.
        /// </summary>
        /// <param name="driverLocator">The driver model provider.</param>
        /// <exception cref="System.ArgumentNullException">
        /// Thrown when <paramref name="driverLocator"/> is <see langword="null"/>.
        /// </exception>
        public SpeedCapturesModel(IDriverModelLocator driverLocator)
        {
            Guard.NotNull(driverLocator, "driverLocator");

            DriverLocator = driverLocator;
            InnerS1 = new ObservableCollection<SpeedCaptureModel>();
            S1 = new ReadOnlyObservableCollection<SpeedCaptureModel>(InnerS1);
            InnerS2 = new ObservableCollection<SpeedCaptureModel>();
            S2 = new ReadOnlyObservableCollection<SpeedCaptureModel>(InnerS2);
            InnerS3 = new ObservableCollection<SpeedCaptureModel>();
            S3 = new ReadOnlyObservableCollection<SpeedCaptureModel>(InnerS3);
            InnerStraight = new ObservableCollection<SpeedCaptureModel>();
            Straight = new ReadOnlyObservableCollection<SpeedCaptureModel>(InnerStraight);
            Builder = new SpeedCapturesModelBuilder(this);
        }
        /// <summary>
        /// Initialises a new instance of the <see cref="DriverMessageDispatcher"/> class and
        /// specifies the driver model locator.
        /// </summary>
        /// <param name="driverLocator">The driver model locator.</param>
        public DriverMessageDispatcher(IDriverModelLocator driverLocator)
        {
            Guard.NotNull(driverLocator, "driverLocator");

            DriverLocator = driverLocator;
        }