public static void RemoveFileFromMRUList(string filePath) { StringCollection MRUList = (StringCollection)Properties.Settings.Default["MRUList"]; if (MRUList == null) { MRUList = new StringCollection(); } MRUList.Remove(filePath); //remove it if it's already there Properties.Settings.Default["MRUList"] = MRUList; Properties.Settings.Default.Save(); }
private void AddFileToMRUList(string filePath) { StringCollection MRUList = (StringCollection)Properties.Settings.Default["MRUList"]; if (MRUList == null) { MRUList = new StringCollection(); } MRUList.Remove(filePath); //remove it if it's already there MRUList.Insert(0, filePath); //add it to the top of the list Properties.Settings.Default["MRUList"] = MRUList; Properties.Settings.Default.Save(); }
private void AddFileToMRUList(string filePath) { StringCollection MRUList = (StringCollection)Properties.Settings.Default["MRUList"]; if (MRUList == null) { MRUList = new StringCollection(); } MRUList.Remove(filePath); MRUList.Insert(0, filePath); Properties.Settings.Default["MRUList"] = MRUList; Properties.Settings.Default.Save(); LoadMRUMenu(); }