cleanup
This commit is contained in:
parent
5b4578fede
commit
7ba2694c95
@ -31,7 +31,7 @@ namespace OWTrack
|
|||||||
private const string IS_RUNNING = "Running";
|
private const string IS_RUNNING = "Running";
|
||||||
private const string NOT_RUNNING = " Not running";
|
private const string NOT_RUNNING = " Not running";
|
||||||
private bool SRonce = false;
|
private bool SRonce = false;
|
||||||
int dummy = 0;
|
private string Version = Program.Version.ToString();
|
||||||
|
|
||||||
public MainForm()
|
public MainForm()
|
||||||
{
|
{
|
||||||
@ -40,8 +40,8 @@ namespace OWTrack
|
|||||||
loadSave();
|
loadSave();
|
||||||
checkStatus();
|
checkStatus();
|
||||||
update();
|
update();
|
||||||
label4.Text = Program.Version.ToString();
|
label4.Text = Version;
|
||||||
Text = "OWTrack " + Program.Version.ToString();
|
Text = "OWTrack " + Version;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkStatus()
|
private void checkStatus()
|
||||||
@ -71,6 +71,8 @@ namespace OWTrack
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Move to saveManeger.cs ?
|
||||||
|
//Refactor!!
|
||||||
private void loadSave()
|
private void loadSave()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -90,7 +92,6 @@ namespace OWTrack
|
|||||||
string line = st.ReadToEnd();
|
string line = st.ReadToEnd();
|
||||||
if (line.Contains("Overwatch.exe"))
|
if (line.Contains("Overwatch.exe"))
|
||||||
{
|
{
|
||||||
MessageBox.Show(line);
|
|
||||||
tr = saveManeger.GetSavedTracker();
|
tr = saveManeger.GetSavedTracker();
|
||||||
if (tr.startSR > 0) SRonce = true;
|
if (tr.startSR > 0) SRonce = true;
|
||||||
}
|
}
|
||||||
@ -139,10 +140,7 @@ namespace OWTrack
|
|||||||
tr.settings.TrackSR = state;
|
tr.settings.TrackSR = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OWTrackFunc(bool state)
|
private void OWTrackFunc(bool state) => tr.settings.TrackOW = state;
|
||||||
{
|
|
||||||
tr.settings.TrackOW = state;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void update()
|
private void update()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user