This commit is contained in:
HeshamTB 2018-12-10 11:06:32 +03:00
parent 008b889ccd
commit 5818104335
4 changed files with 3 additions and 17 deletions

View File

@ -21,7 +21,6 @@ SOFTWARE.*/
using System; using System;
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
using Newtonsoft.Json;
using System.IO; using System.IO;
namespace OWTrack namespace OWTrack

View File

@ -17,10 +17,6 @@ namespace OWTrack
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm()); Application.Run(new MainForm());
} }
public static string Version { get; } = "1.4.3";
public static string Version { get; } = "1.4.3";
//public static string Version = Application.ProductVersion;
//public static Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
} }
} }

View File

@ -31,7 +31,6 @@ namespace OWTrack
{ {
public int wins, losses, startSR, newSR, totalMatches = 0; public int wins, losses, startSR, newSR, totalMatches = 0;
public string gamePath; public string gamePath;
public void Track() { }//Deserailize here public void Track() { }//Deserailize here
public void reset() { wins = 0; losses = 0; startSR = 0; newSR = 0; gamePath = null; } public void reset() { wins = 0; losses = 0; startSR = 0; newSR = 0; gamePath = null; }
public void addWin() => wins++; public void addWin() => wins++;
@ -90,6 +89,7 @@ namespace OWTrack
if (paths.Count > 1) if (paths.Count > 1)
{ {
//TODO: ask about correct path //TODO: ask about correct path
//New Form??
return true; return true;
} }
@ -105,12 +105,7 @@ namespace OWTrack
MessageBox.Show(e.Message); MessageBox.Show(e.Message);
return false; return false;
} }
} }
private bool ProgramFilesExist(char drive)
{
return Directory.Exists(drive+":\\Program Files");
}
public static IEnumerable<string> GetFiles(string root, string searchPattern) public static IEnumerable<string> GetFiles(string root, string searchPattern)
{ {

View File

@ -20,11 +20,7 @@ SOFTWARE.*/
using Newtonsoft.Json; using Newtonsoft.Json;
using System; using System;
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OWTrack namespace OWTrack
{ {