From 885d235b334cb70cb5a511686fbf2246546c20b7 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Thu, 4 Oct 2018 09:03:54 +0300 Subject: [PATCH] clean --- OWTrack/MainForm.cs | 15 +++++---------- OWTrack/Program.cs | 2 +- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/OWTrack/MainForm.cs b/OWTrack/MainForm.cs index ddf3b21..47fdf59 100644 --- a/OWTrack/MainForm.cs +++ b/OWTrack/MainForm.cs @@ -28,7 +28,7 @@ namespace OWTrack { public partial class MainForm : Form { - Tracker tr = new Tracker(); + Tracker tr; private const string IS_RUNNING = "Running"; private const string NOT_RUNNING = " Not running"; private bool SRonce = false; @@ -36,11 +36,12 @@ namespace OWTrack public MainForm() { InitializeComponent(); + tr = new Tracker(); loadSave(); checkStatus(); update(); label4.Text = Program.Version.ToString(); - Text = "OWTrack " + Program.Version.ToString(); + Text = "OWTrack " + Program.Version.ToString(); } private void checkStatus() @@ -127,12 +128,9 @@ namespace OWTrack if (result == DialogResult.OK) { MessageBox.Show("Saved Overwatch.exe location.\nPress Clear to rest"); - return openFileDialog1.FileName; + return openFileDialog1.FileName; } - else - { - return null; - } + else { return null; } } private void SRSystem(bool state) @@ -246,9 +244,6 @@ namespace OWTrack tr.gamePath = getGamePath(); update(); } - #endregion - - } } diff --git a/OWTrack/Program.cs b/OWTrack/Program.cs index 78d94a1..8ed6853 100644 --- a/OWTrack/Program.cs +++ b/OWTrack/Program.cs @@ -18,7 +18,7 @@ namespace OWTrack Application.Run(new MainForm()); } - public static string Version { get; } = "1.4.1"; + public static string Version { get; } = "1.4.2-a0"; //public static string Version = Application.ProductVersion; //public static Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;