public void Run() { while (isRunning) { // Handle events HandleEvents();