Formatting

This commit is contained in:
Jens True 2022-06-19 20:08:22 +02:00
parent 3dff33540b
commit f7b890b14a
6 changed files with 19 additions and 19 deletions

@ -77,7 +77,7 @@ namespace Tidstagning
if (e.RowIndex >= 0 && e.ColumnIndex == grid.Columns["DNF"].Index) if (e.RowIndex >= 0 && e.ColumnIndex == grid.Columns["DNF"].Index)
{ {
entries[e.RowIndex].DNF(); entries[e.RowIndex].DNF();
if(liste is not null) if (liste is not null)
liste.WriteDNF(entries[e.RowIndex]); liste.WriteDNF(entries[e.RowIndex]);
grid.ClearSelection(); grid.ClearSelection();
@ -87,7 +87,7 @@ namespace Tidstagning
if (e.RowIndex >= 0 && e.ColumnIndex == grid.Columns["Complete"].Index) if (e.RowIndex >= 0 && e.ColumnIndex == grid.Columns["Complete"].Index)
{ {
entries[e.RowIndex].Complete(); entries[e.RowIndex].Complete();
if(liste is not null) if (liste is not null)
liste.WriteComplete(entries[e.RowIndex]); liste.WriteComplete(entries[e.RowIndex]);
grid.ClearSelection(); grid.ClearSelection();

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Timer=System.Threading.Timer; using Timer = System.Threading.Timer;
namespace Tidstagning namespace Tidstagning
{ {
class Procedure class Procedure
@ -125,9 +125,9 @@ namespace Tidstagning
private void Alarm() private void Alarm()
{ {
if(log is not null) if (log is not null)
log.Write("HORN!"); log.Write("HORN!");
if(horn is not null) if (horn is not null)
horn.Sound(signalLength); horn.Sound(signalLength);
next(); next();
Run(); Run();

@ -16,13 +16,13 @@ namespace Tidstagning
[STAThread] [STAThread]
static void Main(string[] args) static void Main(string[] args)
{ {
Parser.Default.ParseArguments<Options>(args) Parser.Default.ParseArguments<Options>(args)
.WithParsed<Options>(o => .WithParsed<Options>(o =>
{ {
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainUI(o.Verbose)); Application.Run(new MainUI(o.Verbose));
}); });

@ -61,7 +61,7 @@ namespace Tidstagning
*/ */
public void Sound(uint time) public void Sound(uint time)
{ {
if(!com.IsOpen) if (!com.IsOpen)
{ {
Debug.WriteLine("ComPort not open"); Debug.WriteLine("ComPort not open");
return; return;
@ -95,7 +95,7 @@ namespace Tidstagning
processing_queue = true; processing_queue = true;
SignalSpec signal = signals.Peek(); SignalSpec signal = signals.Peek();
if(signal.output_on) if (signal.output_on)
{ {
On(); On();
} }