Clean up "Using" to remove implied includes.
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Jens True 2021-12-15 17:01:02 +01:00
parent 5c05466bc8
commit 86cfc546ac
6 changed files with 27 additions and 11 deletions

@ -32,7 +32,7 @@ namespace Tidstagning
return titleAttribute.Title; return titleAttribute.Title;
} }
} }
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase); return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Location);
} }
} }

@ -11,8 +11,8 @@ namespace Tidstagning
{ {
}; };
ResultList liste; ResultList? liste;
Relay horn; Relay? horn;
Procedure startprocedure = new Procedure(); Procedure startprocedure = new Procedure();
public MainUI() public MainUI()

@ -1,15 +1,17 @@
using System.Diagnostics; using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Tidstagning namespace Tidstagning
{ {
class Procedure class Procedure
{ {
Relay horn; Relay? horn;
ResultList log; ResultList? log;
List<DateTime> signaler; List<DateTime> signaler;
uint signalLength = 500; uint signalLength = 500;
System.Threading.Timer timer; System.Threading.Timer? timer;
Int16 idx = 0; Int16 idx = 0;
public Procedure() public Procedure()

@ -3,12 +3,13 @@ using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO.Ports; using System.IO.Ports;
using System.Threading; using System.Threading;
namespace Tidstagning namespace Tidstagning
{ {
class Relay class Relay
{ {
SerialPort com; SerialPort com;
System.Threading.Timer cooldownTimer; System.Threading.Timer? cooldownTimer;
struct SignalSpec struct SignalSpec
{ {

@ -8,7 +8,7 @@ namespace Tidstagning
System.IO.StreamWriter filehandle; System.IO.StreamWriter filehandle;
System.IO.StreamWriter filehandle2; System.IO.StreamWriter filehandle2;
Tidstagning.MainUI parentForm; Tidstagning.MainUI parentForm;
string racenumber; string racenumber = "";
public ResultList(string filename, Tidstagning.MainUI log_object) public ResultList(string filename, Tidstagning.MainUI log_object)
{ {
filename = MakeSafeFilename(filename, '_'); filename = MakeSafeFilename(filename, '_');

@ -4,9 +4,22 @@
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework> <TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms> <UseWindowsForms>True</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>disable</ImplicitUsings>
<StartupObject>Tidstagning.Program</StartupObject> <StartupObject>Tidstagning.Program</StartupObject>
<DebugType>portable</DebugType>
<SignAssembly>False</SignAssembly>
<ErrorReport>none</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn />
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn />
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>