private void calendar1_SelectDay(object sender, MonthCalendar.SelectDayEventArgs e) { MethodInvoker setAll = delegate { if (intervalChoice == "30mins") { show30MinuteChart(); } else if (intervalChoice == "1hour") { show1hrChart(); } else if (intervalChoice == "1month") { showMonthlyChart(); } }; if (listView1.InvokeRequired) { listView1.Invoke(setAll); } else { setAll(); } }
private void calendar1_SelectDay(object sender, MonthCalendar.SelectDayEventArgs e) { CRReloader(); }