diff options
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 } } + } } |