Exemplo n.º 1
0
        private void OnSensorChanged(object sender, AccelerometerValueChangedEventArgs e)
        {
            _lastValue = e.Value;

            RaiseCurrentValueChanged(e);
        }
        private void OnSensorChanged(object sender, AccelerometerValueChangedEventArgs e)
        {
            _lastValue = e.Value;

            RaiseCurrentValueChanged(e);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="AccelerometerValueChangedEventArgs"/> class.
        /// </summary>
        /// <param name="newValue">The new accelerometer value.</param>
        /// <exception cref="ArgumentNullException">The <paramref name="newValue"/> is <c>null</c>.</exception>
        public AccelerometerValueChangedEventArgs(IAccelerometerValue newValue)
        {
            Argument.IsNotNull("newValue", newValue);

            Value = newValue;
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AccelerometerValueChangedEventArgs"/> class.
        /// </summary>
        /// <param name="newValue">The new accelerometer value.</param>
        /// <exception cref="ArgumentNullException">The <paramref name="newValue"/> is <c>null</c>.</exception>
        public AccelerometerValueChangedEventArgs(IAccelerometerValue newValue)
        {
            Argument.IsNotNull("newValue", newValue);

            Value = newValue;
        }