private int ParseWithDefault(string pText, int pDefaultValue) { try { return int.Parse(pText); } catch (Exception) { return pDefaultValue; } }