private void RedrawButtonClick(object sender, EventArgs e) { RedrawLowResBest(); RedrawLowResLast(); LowResBest.Refresh(); HighResBest.Refresh(); LowResLast.Refresh(); HighResLast.Refresh(); }
void UpdateLast() { if (!updateLast && (!updateLastSwitch.IsOn || ((DateTime.Now - previousLastUpdate).TotalMilliseconds <= MINIMUM_REFRESH_PERIOD))) { return; } updateLast = false; previousLastUpdate = DateTime.Now; BeginInvoke(new Action(() => { RedrawLowResLast(); LowResLast.Refresh(); HighResLast.Refresh(); })); }