private void trackBarFunctionSpeed_Scroll(object sender, EventArgs e)
        {
            DisplayValuePair <string, byte> function = (DisplayValuePair <string, byte>)listBoxFunctions.SelectedItem;
            byte speed = (byte)trackBarFunctionSpeed.Value;

            if (activeLeds.Count < 1)
            {
                selectedLed.UpdateFunction(function.Value, speed);
            }
            else
            {
                foreach (WifiLed led in activeLeds)
                {
                    led.UpdateFunction(function.Value, speed);
                }
            }
        }
示例#2
0
 //Implementing Equals we check if the display parts are the same but NOT the values.
 public bool Equals(DisplayValuePair <TDisplay, TValue> other)
 {
     return(this.Display.Equals(other.Display));
 }