diff --git a/OWTrack/Form1.cs b/OWTrack/Form1.cs index f00e742..d59616c 100644 --- a/OWTrack/Form1.cs +++ b/OWTrack/Form1.cs @@ -23,20 +23,17 @@ namespace OWTrack } private void checkStatus() - { + { + Time.Text = DateTime.Now.ToString("h:mm tt"); + status.Text = NOT_RUNNING; + status.ForeColor = Color.Red; try - { - Time.Text = DateTime.Now.ToString("h:mm tt"); + { if (tr.owRunning()) { status.Text = IS_RUNNING; status.ForeColor = Color.FromArgb(128, 255, 128); - } - else - { - status.Text = NOT_RUNNING; - status.ForeColor = Color.Red; - } + } } catch (Exception e) {