Merge branch 'Bug/hiddenForm' of Hesham/OWtrack into Dev

This commit is contained in:
Hesham 2018-09-04 20:45:57 +03:00 committed by HeshamTB
commit e818c5ebea

View File

@ -4,6 +4,7 @@ using System.Windows.Forms;
using Newtonsoft.Json;
using System.IO;
namespace OWTrack
{
public partial class Form1 : Form
@ -21,6 +22,7 @@ namespace OWTrack
update();
label4.Text = Program.Version.ToString();
Text = "OWTrack " + Program.Version.ToString();
}
private void checkStatus()
@ -73,8 +75,8 @@ namespace OWTrack
{
if (!tr.LoacteOW())
{
getGamePath();
st.Close();
getGamePath();
}
return true;
}
@ -104,11 +106,18 @@ namespace OWTrack
openFileDialog1.CheckFileExists = true;
openFileDialog1.CheckPathExists = true;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
DialogResult result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK)
{
tr.gamePath = openFileDialog1.FileName;
update();
}
else if (result == DialogResult.Cancel)
{
Close();
}
FindForm();
update();
}
private Tracker savedTracker()