Using the System.Globalization Namespace and appending , CultureInfo.Invariant Culture to line 28 did the trick.

@vesuvius: I'm relatively new to C#. Would you mind explaining exactly why I'd want to use TryParse in an app like this?