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