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
{
delegate void SetTextCallback(string text);
readonly BindingList<Entry> entries = new() {};
readonly BindingList<Entry> 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

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

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

@ -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())));

@ -5,7 +5,15 @@
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<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>
<ItemGroup>
@ -13,4 +21,19 @@
<PackageReference Include="System.IO.Ports" Version="6.0.0" />
</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>

@ -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