private void UpdateDisplay() { StringBuilder sb = new StringBuilder(); var items = SettingsCollection.Where(e => e.IsModified); foreach (var item in items) { sb.Append(item.Label.ToUpper()); if (item is StringSetting) { StringSetting ss = item as StringSetting; sb.Append(": "); sb.Append(ss.TextValue); } else { BooleanSetting bs = item as BooleanSetting; if (bs.IsChecked) { sb.Append(": Checked"); } else { sb.Append(": Unchecked"); } } sb.Append(Environment.NewLine); } Display = sb.ToString(); }