Reduced unneeded files
This commit is contained in:
parent
05b01a1642
commit
588ecab69f
15
MainUI.cs
15
MainUI.cs
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user