nigative win/loss

This commit is contained in:
HeshamTB 2018-09-20 11:33:26 +03:00
parent 500f9c5852
commit fae9d2f50c

View File

@ -145,16 +145,22 @@ namespace OWTrack
} }
private void reduceWinBut_Click(object sender, EventArgs e) private void reduceWinBut_Click(object sender, EventArgs e)
{
if (tr.wins > 0)
{ {
tr.reduceWin(); tr.reduceWin();
update(); update();
} }
}
private void reduceLossBut_Click(object sender, EventArgs e) private void reduceLossBut_Click(object sender, EventArgs e)
{
if (tr.losses > 0)
{ {
tr.rediceLoss(); tr.rediceLoss();
update(); update();
} }
}
private void clearBut_Click(object sender, EventArgs e) private void clearBut_Click(object sender, EventArgs e)
{ {