1.4.3 #38

Merged
Hesham merged 25 commits from release/1.4.3 into master 2018-12-21 22:19:53 +01:00
Showing only changes of commit 4906361a56 - Show all commits

View File

@ -139,7 +139,38 @@ namespace OWTrack
}
}
public class Match
class Session
{
public int TotalMatches;
public int SkillChange;
public int StartSR;
List<Match> Matches = new List<Math>();
DateTime date;
public Session(int StartSR)
{
this.StartSR = StartSR;
date = DateTime.Now.Date;
}
public bool IsNewSession()
{
if (Matches.Count == 0) return true;
else return false;
}
public Match GetLastMatch()
{
return Matches.Last();
}
public void AddMatch(Match match)
{
this.Matches.Add(match);
}
}
class Match
{
public Match() { }
public DateTime dateTime { get; set; }