optimize OW status

This commit is contained in:
HeshamTB 2018-08-16 07:50:08 +03:00
parent e23d9eebe5
commit 77fefa6812

View File

@ -24,19 +24,16 @@ 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)
{