Merge for 1.2.4 #8

Merged
Hesham merged 11 commits from Dev into master 2018-09-01 13:26:28 +02:00
Showing only changes of commit 77fefa6812 - Show all commits

View File

@ -24,19 +24,16 @@ namespace OWTrack
private void checkStatus() private void checkStatus()
{ {
Time.Text = DateTime.Now.ToString("h:mm tt");
status.Text = NOT_RUNNING;
status.ForeColor = Color.Red;
try try
{ {
Time.Text = DateTime.Now.ToString("h:mm tt");
if (tr.owRunning()) if (tr.owRunning())
{ {
status.Text = IS_RUNNING; status.Text = IS_RUNNING;
status.ForeColor = Color.FromArgb(128, 255, 128); status.ForeColor = Color.FromArgb(128, 255, 128);
} }
else
{
status.Text = NOT_RUNNING;
status.ForeColor = Color.Red;
}
} }
catch (Exception e) catch (Exception e)
{ {