Below is a snip from the code showing two instructions reverting the previous declarations.
var topValue = xmlReader.GetAttribute("TOP").Replace(",", ".");
var leftValue = xmlReader.GetAttribute("Left").Replace(",", ".");
topValue = xmlReader.GetAttribute("TOP").Replace(".", ",");
leftValue = xmlReader.GetAttribute("Left").Replace(".", ",");
Proposed solution is to comment the last declarations.