Exemplo n.º 1
0
 private void ColorPicker_OnColorChanged_4(object sender, Controls.OnColorChangedArgs e)
 {
     m_liveColor[4, 0] = e.Red;
     m_liveColor[4, 1] = e.Green;
     m_liveColor[4, 2] = e.Blue;
     FireLiveTouchChagned();
 }
Exemplo n.º 2
0
        private async void ColorPicker_OnColorChanged(object sender, Controls.OnColorChangedArgs e)
        {
            ManualColorSettings newSettings = new ManualColorSettings();

            newSettings.CurrentLedStateList = new List <List <SerlizableLed> >();
            List <SerlizableLed> localList = new List <SerlizableLed>();
            SerlizableLed        led       = new SerlizableLed(e.Red / 255.0, e.Green / 255.0, e.Blue / 255.0, 1.0, 0);

            localList.Add(led);
            localList.Add(led);
            localList.Add(led);
            localList.Add(led);
            localList.Add(led);

            newSettings.CurrentLedStateList.Add(localList);

            // Send the settings
            await SendNewSettings(newSettings);
        }