diff options
| author | James Barnett <james.barnett@fivium.co.uk> | 2017-08-01 21:36:39 +0100 |
|---|---|---|
| committer | James Barnett <james.barnett@fivium.co.uk> | 2017-08-01 21:36:39 +0100 |
| commit | 6f8f07b1ae8d0cb739b9485b7b18e2544764206b (patch) | |
| tree | 5bd58e00d41119f7d279d8fd98c8a2cb2893ead2 /NucLedController/MainWindow.xaml.cs | |
| parent | cd68a397f67308a9b915a98837780813750e29c5 (diff) | |
| download | intel-nuc-led-controller-0.2.tar.xz intel-nuc-led-controller-0.2.zip | |
Add fade cycle modev0.2
Diffstat (limited to 'NucLedController/MainWindow.xaml.cs')
| -rw-r--r-- | NucLedController/MainWindow.xaml.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/NucLedController/MainWindow.xaml.cs b/NucLedController/MainWindow.xaml.cs index 0d943c7..c33c522 100644 --- a/NucLedController/MainWindow.xaml.cs +++ b/NucLedController/MainWindow.xaml.cs @@ -1,8 +1,10 @@ using System; +using System.Diagnostics; using System.Linq; using System.Timers; using System.Windows; using System.Windows.Controls; +using System.Windows.Navigation; namespace NucLedController { @@ -46,6 +48,12 @@ namespace NucLedController currentControlMode.Start(); lableStatusText.Content = "Colour cycle mode enabled"; } + else if (radioButtonFadeColour.IsChecked ?? false) + { + currentControlMode = new FadeColourCyclerControlMode((int) sliderFadeRate.Value); + currentControlMode.Start(); + lableStatusText.Content = "Colour fade mode enabled"; + } } else { @@ -71,5 +79,6 @@ namespace NucLedController } } + } } |