using System;
/*
 * Display timer
 */
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;

namespace Project
{
    public partial class fMain
    {
        private void tmDisplay_Tick(object sender, EventArgs e)
        {
            if (bw.IsBusy)
            {
                if (sbBWRun.BackColor == Color.Lime)
                    sbBWRun.BackColor = Color.LimeGreen;
                else
                    sbBWRun.BackColor = Color.Lime;
            }
            else sbBWRun.BackColor = Color.Red;
             sbBCD.BackColor = Pub.barcode.IsInit ? Color.Lime : Color.Red;
             //if (redisConnection == null) this.sbRedis.ForeColor = Color.DimGray;
             //else if (redisConnection.IsConnected)
             //{
             //    if (db == null) this.sbRedis.ForeColor = Color.Blue;
             //    else this.sbRedis.ForeColor = Color.Green;
             //}
             //else this.sbRedis.ForeColor = Color.Red;
            
        }
    }
}
