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
{
delegate void SetTextCallback(string text);
BindingList<Entry> entries = new BindingList<Entry>
{
};
readonly BindingList<Entry> entries = new() {};
ResultList? liste;
Relay horn = new Relay();
Procedure startprocedure = new Procedure();
readonly Relay horn = new();
readonly Procedure startprocedure = new ();
public MainUI(bool ShowConfig = false)
{
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;
while ((deltager = deltager_handle.ReadLine()) != null)
{
@ -60,7 +57,7 @@ namespace Tidstagning
{
if (this.txtDebug.InvokeRequired)
{
SetTextCallback d = new SetTextCallback(LogAppend);
SetTextCallback d = new (LogAppend);
this.Invoke(d, new object[] { text });
}
else
@ -209,7 +206,7 @@ namespace Tidstagning
private void buttonConfig_Click(object sender, EventArgs e)
{
ConfigUI configui = new ConfigUI();
ConfigUI configui = new();
configui.ShowDialog();
}

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