public Form1() { InitializeComponent(); Controls.Add(_bar); _bar.ApplySettings(new BarSettings(() => DateTime.Now.Second, 60, 5, Color.Green, Color.Red)); Timer tmr = new Timer(); tmr.Tick += (s, e) => _bar.Refresh(); tmr.Interval = 1000; tmr.Start(); }