Skip to content

Instantly share code, notes, and snippets.

@filipoff2
Created November 15, 2019 13:59
Show Gist options
  • Save filipoff2/89e11a32fe7d44e776f306f6701856b9 to your computer and use it in GitHub Desktop.
Save filipoff2/89e11a32fe7d44e776f306f6701856b9 to your computer and use it in GitHub Desktop.
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