File.Write in Update()
This commit is contained in:
parent
e3d1d9208f
commit
e24187f298
@ -24,8 +24,7 @@ namespace OWTrack
|
|||||||
private void checkStatus()
|
private void checkStatus()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
File.WriteAllText(Directory.GetCurrentDirectory() + "/data.json", JsonConvert.SerializeObject(tr));
|
|
||||||
Time.Text = DateTime.Now.ToString("h:mm tt");
|
Time.Text = DateTime.Now.ToString("h:mm tt");
|
||||||
if (tr.owRunning())
|
if (tr.owRunning())
|
||||||
{
|
{
|
||||||
@ -115,6 +114,7 @@ namespace OWTrack
|
|||||||
{
|
{
|
||||||
Wins.Text = tr.GetWins().ToString();
|
Wins.Text = tr.GetWins().ToString();
|
||||||
Losses.Text = tr.GetLosses().ToString();
|
Losses.Text = tr.GetLosses().ToString();
|
||||||
|
File.WriteAllText(Directory.GetCurrentDirectory() + "/data.json", JsonConvert.SerializeObject(tr));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void clearBut_Click(object sender, EventArgs e)
|
private void clearBut_Click(object sender, EventArgs e)
|
||||||
|
Loading…
Reference in New Issue
Block a user