Example #1
0
        protected void refresh()
        {
            try {
                if (_labels.Count == 0 || _refresh)
                {
                    return;
                }

                _refresh = true;

                // timer
                if (_active >= 0)
                {
                    footer_label al = _labels[_active];
                    if (al.start.HasValue && (DateTime.Now - al.start.Value).TotalSeconds <= al.ss)
                    {
                        return;
                    }
                }

                _active = _active < _labels.Count - 1 ? _active + 1 : 0;

                _labels.ForEach(x => x.start = null);
                _labels[_active].start       = DateTime.Now;

                show(_labels[_active]);
            } catch { } finally { _refresh = false; }
        }
Example #2
0
 protected void show(footer_label l)
 {
     try {
         _label.Font      = _fonts[l.f];
         _label.ForeColor = l.fc;
         _label.Text      = l.text;
     } catch { }
 }
Example #3
0
 protected void show(footer_label l)
 {
     try {
         Label ll = l.position == pos.left ? _label_l : _label_r;
         ll.Font      = _fonts[l.f];
         ll.ForeColor = l.fc;
         ll.Text      = l.text;
     } catch { }
 }