Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        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();
        }