optimize OW status
This commit is contained in:
parent
e23d9eebe5
commit
77fefa6812
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user