void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { if (ProcessTorrentsButton.InvokeRequired) this.Invoke(new ProcessTorrentsInvoker(PerformClickProcessTorrents)); else ProcessTorrentsButton.PerformClick(); }