diff --git a/ControllerCommon/Managers/ServiceManager.cs b/ControllerCommon/Managers/ServiceManager.cs index 366956f63..4cb995d45 100644 --- a/ControllerCommon/Managers/ServiceManager.cs +++ b/ControllerCommon/Managers/ServiceManager.cs @@ -220,7 +220,7 @@ public async Task StartServiceAsync() try { controller.Refresh(); - switch(controller.Status) + switch (controller.Status) { case System.ServiceProcess.ServiceControllerStatus.Running: case System.ServiceProcess.ServiceControllerStatus.StartPending: diff --git a/ControllerCommon/Processor/Intel/KX.cs b/ControllerCommon/Processor/Intel/KX.cs index f75c229d5..542024a06 100644 --- a/ControllerCommon/Processor/Intel/KX.cs +++ b/ControllerCommon/Processor/Intel/KX.cs @@ -3,7 +3,6 @@ using System; using System.Diagnostics; using System.IO; -using System.Text; namespace ControllerCommon.Processor.Intel { diff --git a/ControllerCommon/Utils/CommonUtils.cs b/ControllerCommon/Utils/CommonUtils.cs index 843af9323..253394f3e 100644 --- a/ControllerCommon/Utils/CommonUtils.cs +++ b/ControllerCommon/Utils/CommonUtils.cs @@ -19,7 +19,7 @@ public static string Between(string STR, string FirstString, string LastString = string FinalString; int Pos1 = STR.IndexOf(FirstString) + FirstString.Length; int Pos2 = STR.Length; - + if (LastString != null) Pos2 = STR.IndexOf(LastString, Pos1); diff --git a/ControllerCommon/Utils/InputUtils.cs b/ControllerCommon/Utils/InputUtils.cs index c246d25e8..58a0c408e 100644 --- a/ControllerCommon/Utils/InputUtils.cs +++ b/ControllerCommon/Utils/InputUtils.cs @@ -20,7 +20,7 @@ public enum Input AutoRollYawSwap = 2, JoystickSteering = 3, } - + public enum UMC_Motion_Default { Off = 0, diff --git a/HandheldCompanion/Extensions/SliderTools.cs b/HandheldCompanion/Extensions/SliderTools.cs index d2b77b093..716582592 100644 --- a/HandheldCompanion/Extensions/SliderTools.cs +++ b/HandheldCompanion/Extensions/SliderTools.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; +using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/HandheldCompanion/Views/Pages/ProfilesPage.xaml.cs b/HandheldCompanion/Views/Pages/ProfilesPage.xaml.cs index cdae433de..75d32dd3b 100644 --- a/HandheldCompanion/Views/Pages/ProfilesPage.xaml.cs +++ b/HandheldCompanion/Views/Pages/ProfilesPage.xaml.cs @@ -472,7 +472,7 @@ private void b_ApplyProfile_Click(object sender, RoutedEventArgs e) currentProfile.TDP_value[1] = (int)TDPBoostSlider.Value; currentProfile.umc_trigger = 0; - + foreach (GamepadButtonFlagsExt button in (GamepadButtonFlagsExt[])Enum.GetValues(typeof(GamepadButtonFlagsExt))) if ((bool)activators[button].IsChecked) currentProfile.umc_trigger |= button; @@ -558,13 +558,13 @@ private void cB_Input_SelectionChanged(object sender, SelectionChangedEventArgs Text_InputHint.Text = Profile.InputDescription[input]; } - + private void cB_UMC_MotionDefaultOffOn_SelectionChanged(object sender, RoutedEventArgs e) { if (cB_Input.SelectedIndex == -1) return; } - + private void TDPSustainedSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) { // do something diff --git a/HandheldCompanion/Views/QuickPages/QuickSuspenderPage.xaml.cs b/HandheldCompanion/Views/QuickPages/QuickSuspenderPage.xaml.cs index fea2cb610..d551ba540 100644 --- a/HandheldCompanion/Views/QuickPages/QuickSuspenderPage.xaml.cs +++ b/HandheldCompanion/Views/QuickPages/QuickSuspenderPage.xaml.cs @@ -1,18 +1,6 @@ using HandheldCompanion.Managers; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; namespace HandheldCompanion.Views.QuickPages { diff --git a/HandheldCompanion/Views/Windows/MainWindow.xaml.cs b/HandheldCompanion/Views/Windows/MainWindow.xaml.cs index 577452130..02c0c6384 100644 --- a/HandheldCompanion/Views/Windows/MainWindow.xaml.cs +++ b/HandheldCompanion/Views/Windows/MainWindow.xaml.cs @@ -250,7 +250,7 @@ public MainWindow(StartupEventArgs arguments) // handle settingsPage events settingsPage.SettingValueChanged += (name, value) => { - switch(name) + switch (name) { case "toast_notification": toastManager.Enabled = (bool)value; diff --git a/HandheldCompanion/Views/Windows/QuickTools.xaml.cs b/HandheldCompanion/Views/Windows/QuickTools.xaml.cs index e285e6d6b..65e9bfc58 100644 --- a/HandheldCompanion/Views/Windows/QuickTools.xaml.cs +++ b/HandheldCompanion/Views/Windows/QuickTools.xaml.cs @@ -2,7 +2,6 @@ using HandheldCompanion.Extensions; using HandheldCompanion.Views.QuickPages; using ModernWpf.Controls; -using ModernWpf.Controls.Primitives; using System; using System.Collections.Generic; using System.Linq; diff --git a/HandheldCompanion/models/ModelMachenikeHG510.cs b/HandheldCompanion/models/ModelMachenikeHG510.cs index 05f1029cb..63e1f2284 100644 --- a/HandheldCompanion/models/ModelMachenikeHG510.cs +++ b/HandheldCompanion/models/ModelMachenikeHG510.cs @@ -87,7 +87,7 @@ public ModelMachenikeHG510() : base("MachenikeHG510") model3DGroup.Children.Add(FN); model3DGroup.Children.Add(Turbo); model3DGroup.Children.Add(Home); - model3DGroup.Children.Add(Machenike); + model3DGroup.Children.Add(Machenike); model3DGroup.Children.Add(JoystickBaseRingLeft); model3DGroup.Children.Add(JoystickBaseRingRight); model3DGroup.Children.Add(LED1);