Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CultureFormatter
void Submit()
{
// USGLY SAMPLE LOGIC = No cultureInfo
LabelText = Title + " " + EntryText + "";
if (UglyCurtureTextForSample == "UK")
{
LabelText = Title + " £" + EntryText ;
}
if (UglyCurtureTextForSample == "PL")
{
LabelText = Title + EntryText + "PLN";
}
RaisePropertyChanged("LabelText");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment