public Form2() { InitializeComponent(); model = Locator.GetInstance().HeartDataModel; queue = Locator.GetInstance().Queue; this.timer = new Timer(); this.timer.Interval = 100; this.timer.Tick += timer_Tick; InitializeChartHeartRate(); this.timer.Start(); }