Start new session and other fixes
This commit is contained in:
parent
5d7640c0f0
commit
2d5771beb8
@ -38,6 +38,7 @@ namespace OWTrack
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
tr = new Tracker();
|
tr = new Tracker();
|
||||||
loadSave();
|
loadSave();
|
||||||
|
tr.StartNewSeission();
|
||||||
checkStatus();
|
checkStatus();
|
||||||
update();
|
update();
|
||||||
label4.Text = Version;
|
label4.Text = Version;
|
||||||
@ -108,7 +109,6 @@ namespace OWTrack
|
|||||||
}
|
}
|
||||||
ExeTrackCheckBx.Checked = tr.settings.TrackOW;
|
ExeTrackCheckBx.Checked = tr.settings.TrackOW;
|
||||||
SRCheckBx.Checked = tr.settings.TrackSR;
|
SRCheckBx.Checked = tr.settings.TrackSR;
|
||||||
update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private string askForGamePath()
|
private string askForGamePath()
|
||||||
@ -157,7 +157,7 @@ namespace OWTrack
|
|||||||
ChangeInSR = tr.srDiff(),
|
ChangeInSR = tr.srDiff(),
|
||||||
dateTime = DateTime.Now
|
dateTime = DateTime.Now
|
||||||
};
|
};
|
||||||
tr.AddMatch(match);
|
tr.GetCurrentSession().AddMatch(match);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Events
|
#region Events
|
||||||
|
@ -61,12 +61,13 @@ namespace OWTrack
|
|||||||
public void StartNewSeission()
|
public void StartNewSeission()
|
||||||
{
|
{
|
||||||
Session ses = new Session(startSR);
|
Session ses = new Session(startSR);
|
||||||
|
sessions.Add(ses);
|
||||||
//Re do SR input!!
|
//Re do SR input!!
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddMatch(Match match)
|
public Session GetCurrentSession()
|
||||||
{
|
{
|
||||||
sessions.Last().AddMatch(match);
|
return sessions.Last();
|
||||||
}
|
}
|
||||||
public bool owRunning()
|
public bool owRunning()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user