Beispiel #1
0
 private void AddIntegers()
 {
     foreach (var integer in integerList)
     {
         enhancedArrayList.Add(integer);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Inserts a new value into the MedianSlider.
        /// If the number of elements already inserted is equal to the size of the slider,
        /// then the value in the slider that was inserted first chronologically will be popped.
        /// Otherwise, the value is just inserted into the MedianSlider.
        /// </summary>
        ///
        /// <param name="value">The value being inserted into the MedianSlider</param>
        public void Insert(float value)
        {
            if (SliderFilled)
            {
                slider.PopFirst();
            }

            slider.Add(value);
        }