Reduced unneeded files

This commit is contained in:
Jens True 2022-10-07 22:33:54 +02:00
parent 05b01a1642
commit 588ecab69f
2 changed files with 6 additions and 16 deletions

@ -7,18 +7,15 @@ namespace Tidstagning
public partial class MainUI : Form public partial class MainUI : Form
{ {
delegate void SetTextCallback(string text); delegate void SetTextCallback(string text);
BindingList<Entry> entries = new BindingList<Entry> readonly BindingList<Entry> entries = new() {};
{
};
ResultList? liste; ResultList? liste;
Relay horn = new Relay(); readonly Relay horn = new();
Procedure startprocedure = new Procedure(); readonly Procedure startprocedure = new ();
public MainUI(bool ShowConfig = false) public MainUI(bool ShowConfig = false)
{ {
InitializeComponent(); InitializeComponent();
System.IO.StreamReader deltager_handle = new System.IO.StreamReader(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "/Tidstagning/" + "Deltager.txt"); System.IO.StreamReader deltager_handle = new(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "/Tidstagning/" + "Deltager.txt");
string? deltager; string? deltager;
while ((deltager = deltager_handle.ReadLine()) != null) while ((deltager = deltager_handle.ReadLine()) != null)
{ {
@ -60,7 +57,7 @@ namespace Tidstagning
{ {
if (this.txtDebug.InvokeRequired) if (this.txtDebug.InvokeRequired)
{ {
SetTextCallback d = new SetTextCallback(LogAppend); SetTextCallback d = new (LogAppend);
this.Invoke(d, new object[] { text }); this.Invoke(d, new object[] { text });
} }
else else
@ -209,7 +206,7 @@ namespace Tidstagning
private void buttonConfig_Click(object sender, EventArgs e) private void buttonConfig_Click(object sender, EventArgs e)
{ {
ConfigUI configui = new ConfigUI(); ConfigUI configui = new();
configui.ShowDialog(); configui.ShowDialog();
} }

@ -1,7 +0,0 @@
{
"profiles": {
"Tidstagning": {
"commandName": "Project"
}
}
}