incomplete implementation of sessions class

This commit is contained in:
HeshamTB 2018-12-21 15:51:42 +03:00
parent 4906361a56
commit 470e2399f1

View File

@ -41,8 +41,14 @@ namespace OWTrack
public void setNewSR(int SR) { newSR = SR; } public void setNewSR(int SR) { newSR = SR; }
public int srDiff() { return newSR - startSR; } public int srDiff() { return newSR - startSR; }
public Settings settings = new Settings(); public Settings settings = new Settings();
public List<Match> matches = new List<Match>(); //public List<Match> matches = new List<Match>();
public List<Session> sessions = new List<Session>();
public void StartNewSeission()
{
Session ses = new Session(startSR);
//Re do SR input!!
}
public bool owRunning() public bool owRunning()
{ {
if (settings.TrackOW) if (settings.TrackOW)
@ -147,6 +153,9 @@ namespace OWTrack
List<Match> Matches = new List<Math>(); List<Match> Matches = new List<Math>();
DateTime date; DateTime date;
/// <summary>
/// Start a new session with a starting Skill Rating
///</summary>
public Session(int StartSR) public Session(int StartSR)
{ {
this.StartSR = StartSR; this.StartSR = StartSR;