From a12e02736c369d3ecb3414fc00196e22ee873ee8 Mon Sep 17 00:00:00 2001 From: Jens True Date: Thu, 3 Nov 2022 20:35:45 +0100 Subject: [PATCH] Formatting --- MainUI.cs | 6 +++--- Procedure.cs | 1 + Program.cs | 6 ++---- Properties/Settings.Designer.cs | 2 +- Tidstagning.csproj | 25 ++++++++++++++++++++++++- Tidstagning.sln | 7 ++----- 6 files changed, 33 insertions(+), 14 deletions(-) diff --git a/MainUI.cs b/MainUI.cs index 77d2521..11a2bda 100644 --- a/MainUI.cs +++ b/MainUI.cs @@ -7,10 +7,10 @@ namespace Tidstagning public partial class MainUI : Form { delegate void SetTextCallback(string text); - readonly BindingList entries = new() {}; + readonly BindingList entries = new() { }; ResultList? liste; readonly Relay horn = new(); - readonly Procedure startprocedure = new (); + readonly Procedure startprocedure = new(); public MainUI(bool ShowConfig = false) { @@ -57,7 +57,7 @@ namespace Tidstagning { if (this.txtDebug.InvokeRequired) { - SetTextCallback d = new (LogAppend); + SetTextCallback d = new(LogAppend); this.Invoke(d, new object[] { text }); } else diff --git a/Procedure.cs b/Procedure.cs index 58c63c3..8e6386d 100644 --- a/Procedure.cs +++ b/Procedure.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Diagnostics; +using System; using Timer = System.Threading.Timer; namespace Tidstagning { diff --git a/Program.cs b/Program.cs index 40170ee..21ba3e5 100644 --- a/Program.cs +++ b/Program.cs @@ -1,8 +1,6 @@ -using System; -using CommandLine; -using System.Collections.Generic; +using CommandLine; using System.Windows.Forms; - +using System; namespace Tidstagning { class Program diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs index a2cc2f6..98984e9 100644 --- a/Properties/Settings.Designer.cs +++ b/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace Tidstagning.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.0.3.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); diff --git a/Tidstagning.csproj b/Tidstagning.csproj index 689edea..0bb25de 100644 --- a/Tidstagning.csproj +++ b/Tidstagning.csproj @@ -5,7 +5,15 @@ net6.0-windows enable true - true + false + Tidstagning.Program + true + Release + + + + true + x64 @@ -13,4 +21,19 @@ + + + True + True + Settings.settings + + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + \ No newline at end of file diff --git a/Tidstagning.sln b/Tidstagning.sln index b4ac11b..4157306 100644 --- a/Tidstagning.sln +++ b/Tidstagning.sln @@ -1,18 +1,15 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.3.32922.545 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.32901.82 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tidstagning", "Tidstagning.csproj", "{24861418-B1D3-4A24-AE31-3E696E98B1B5}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {24861418-B1D3-4A24-AE31-3E696E98B1B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {24861418-B1D3-4A24-AE31-3E696E98B1B5}.Debug|Any CPU.Build.0 = Debug|Any CPU {24861418-B1D3-4A24-AE31-3E696E98B1B5}.Release|Any CPU.ActiveCfg = Release|Any CPU {24861418-B1D3-4A24-AE31-3E696E98B1B5}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection