Exemplo n.º 1
0
        /// <summary>
        /// Removes the heart rate.
        /// </summary>
        /// <param name="heartRate">The heart rate.</param>
        public virtual void RemoveHeartRate(HeartRate heartRate)
        {
            Check.IsNotNull(heartRate, "heartRate is required.");

            _heartRates.Delete(heartRate);
            NotifyItemRemoved(() => HeartRates, heartRate);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adds the heart rate.
        /// </summary>
        /// <param name="heartRate">The heart rate.</param>
        public virtual void AddHeartRate(HeartRate heartRate)
        {
            Check.IsNotNull(heartRate, "heartRate is required.");

            heartRate.VitalSign = this;
            _heartRates.Add(heartRate);

            NotifyItemAdded(() => HeartRates, heartRate);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Removes the heart rate.
        /// </summary>
        /// <param name="heartRate">The heart rate.</param>
        public virtual void RemoveHeartRate( HeartRate heartRate )
        {
            Check.IsNotNull ( heartRate, "heartRate is required." );

            _heartRates.Delete(heartRate);
            NotifyItemRemoved ( () => HeartRates, heartRate );
        }
Exemplo n.º 4
0
        /// <summary>
        /// Adds the heart rate.
        /// </summary>
        /// <param name="heartRate">The heart rate.</param>
        public virtual void AddHeartRate( HeartRate heartRate )
        {
            Check.IsNotNull ( heartRate, "heartRate is required." );

            heartRate.VitalSign = this;
            _heartRates.Add ( heartRate );

            NotifyItemAdded ( () => HeartRates, heartRate );
        }