Exemplo n.º 1
0
        public void Add(Control ctrl, Color c1, Color c2, short cycleTime_ms, bool bkClr)
        {
            BlinkItem item;

            if (_items.TryGetValue(ctrl, out item))
            {
                item.RestoreColor();
            }
            _items[ctrl] = new BlinkItem(ctrl)
            {
                C1           = c1,
                C2           = c2,
                CycleTime_ms = cycleTime_ms,
                BkClr        = bkClr
            };
        }
        public void Add(Control ctrl, Color c1, Color c2, short cycleTime_ms, bool bkClr)
        {
            BlinkItem item;

            // if it allready exists, just restore the colors first.
            if (_items.TryGetValue(ctrl, out item))
            {
                item.RestoreColor();
            }
            _items[ctrl] = new BlinkItem(ctrl)
            {
                C1           = c1,
                C2           = c2,
                CycleTime_ms = cycleTime_ms,
                BkClr        = bkClr
            };
        }