WIP: Major update #45

Closed
Hesham wants to merge 16 commits from develop-laptop into master
2 changed files with 16 additions and 9 deletions
Showing only changes of commit dbcdef9bf0 - Show all commits

View File

@ -144,16 +144,24 @@ namespace OWTrack
private void update()
{
Wins.Text = tr.GetWins().ToString();
Losses.Text = tr.GetLosses().ToString();
if (tr.newSR == 0)
try
{
if (tr.srDiff() < 1) { srLabel.Text = tr.startSR.ToString() + " - 0"; }
Wins.Text = tr.GetWins().ToString();
Losses.Text = tr.GetLosses().ToString();
if (tr.newSR == 0)
{
if (tr.srDiff() < 1) { srLabel.Text = tr.startSR.ToString() + " - 0"; }
else srLabel.Text = tr.startSR.ToString() + " - " + tr.srDiff();
}
else srLabel.Text = tr.startSR.ToString() + " - " + tr.srDiff();
srTextBox.Text = null;
saveManeger.SaveJSON(tr);
}
else srLabel.Text = tr.startSR.ToString() + " - " + tr.srDiff();
srTextBox.Text = null;
saveManeger.SaveJSON(tr);
catch (Exception e)
{
MessageBox.Show(e.Message);
}
}
private void AddMatch()

View File

@ -128,8 +128,7 @@ namespace OWTrack
}
catch (Exception e)
{
MessageBox.Show(e.Message);
return false;
throw e;
}
}