From 6f8f07b1ae8d0cb739b9485b7b18e2544764206b Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 1 Aug 2017 21:36:39 +0100 Subject: Add fade cycle mode --- NucLedController/MainWindow.xaml.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'NucLedController/MainWindow.xaml.cs') 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 } } + } } -- cgit v1.2.3