Winforms infinite-loop - C#