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 System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Location);
}
}

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

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

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

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

@ -4,9 +4,22 @@
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<UseWindowsForms>True</UseWindowsForms>
<ImplicitUsings>disable</ImplicitUsings>
<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>
<ItemGroup>