diff --git a/OWTrack/Form1.cs b/OWTrack/Form1.cs index 1e654ec..4845bdd 100644 --- a/OWTrack/Form1.cs +++ b/OWTrack/Form1.cs @@ -1,13 +1,6 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Windows.Forms; -using System.Drawing; namespace OWTrack { @@ -17,7 +10,6 @@ namespace OWTrack private const string IS_RUNNING = "Running"; private const string NOT_RUNNING = " Not running"; - public Form1() { InitializeComponent(); @@ -56,11 +48,13 @@ namespace OWTrack tr.addWin(); update(); } + private void button2_Click(object sender, EventArgs e) { tr.addLoss(); update(); } + private void update() { Wins.Text = tr.GetWins().ToString(); diff --git a/OWTrack/Tracker.cs b/OWTrack/Tracker.cs index 8e89b18..20b7f36 100644 --- a/OWTrack/Tracker.cs +++ b/OWTrack/Tracker.cs @@ -1,9 +1,7 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Linq; -using System.Text; -using System.Threading.Tasks; + namespace OWTrack {