From cfc0f2694ee8c43d1c04aa4e904d5e6a89135679 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Fri, 20 Jul 2018 03:28:26 +0300 Subject: [PATCH] cleanup --- OWTrack/Form1.cs | 10 ++-------- OWTrack/Tracker.cs | 4 +--- 2 files changed, 3 insertions(+), 11 deletions(-) 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 {