Formatting

This commit is contained in:
Jens True 2022-11-03 20:35:45 +01:00
parent 643bda1dec
commit a12e02736c
6 changed files with 33 additions and 14 deletions

@ -7,10 +7,10 @@ namespace Tidstagning
public partial class MainUI : Form public partial class MainUI : Form
{ {
delegate void SetTextCallback(string text); delegate void SetTextCallback(string text);
readonly BindingList<Entry> entries = new() {}; readonly BindingList<Entry> entries = new() { };
ResultList? liste; ResultList? liste;
readonly Relay horn = new(); readonly Relay horn = new();
readonly Procedure startprocedure = new (); readonly Procedure startprocedure = new();
public MainUI(bool ShowConfig = false) public MainUI(bool ShowConfig = false)
{ {
@ -57,7 +57,7 @@ namespace Tidstagning
{ {
if (this.txtDebug.InvokeRequired) if (this.txtDebug.InvokeRequired)
{ {
SetTextCallback d = new (LogAppend); SetTextCallback d = new(LogAppend);
this.Invoke(d, new object[] { text }); this.Invoke(d, new object[] { text });
} }
else else

@ -1,5 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System;
using Timer = System.Threading.Timer; using Timer = System.Threading.Timer;
namespace Tidstagning namespace Tidstagning
{ {

@ -1,8 +1,6 @@
using System; using CommandLine;
using CommandLine;
using System.Collections.Generic;
using System.Windows.Forms; using System.Windows.Forms;
using System;
namespace Tidstagning namespace Tidstagning
{ {
class Program class Program

@ -12,7 +12,7 @@ namespace Tidstagning.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [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 { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

@ -5,7 +5,15 @@
<TargetFramework>net6.0-windows</TargetFramework> <TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms> <UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>true</ImplicitUsings> <ImplicitUsings>false</ImplicitUsings>
<StartupObject>Tidstagning.Program</StartupObject>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Configurations>Release</Configurations>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<Optimize>true</Optimize>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@ -13,4 +21,19 @@
<PackageReference Include="System.IO.Ports" Version="6.0.0" /> <PackageReference Include="System.IO.Ports" Version="6.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
</Project> </Project>

@ -1,18 +1,15 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 16
VisualStudioVersion = 17.3.32922.545 VisualStudioVersion = 16.0.32901.82
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tidstagning", "Tidstagning.csproj", "{24861418-B1D3-4A24-AE31-3E696E98B1B5}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tidstagning", "Tidstagning.csproj", "{24861418-B1D3-4A24-AE31-3E696E98B1B5}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution 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.ActiveCfg = Release|Any CPU
{24861418-B1D3-4A24-AE31-3E696E98B1B5}.Release|Any CPU.Build.0 = Release|Any CPU {24861418-B1D3-4A24-AE31-3E696E98B1B5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection