Put enable/disable cursor logging in lambdas where Cursor.Show/Hide methods are called.