private void UpdateRecentList(IEnumerable<string> list) { RecentList.Clear(); foreach (string s in list) { if (!string.IsNullOrEmpty(s.Trim())) RecentList.Add(s); } UpdateRecentSettingsMenu(); }