Esempio n. 1
0
        public void ReadXml(String fileName)
        {
            try
            {
                using (System.IO.Stream fs = IOServices.GetFileStream(fileName, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read))
                {
                    RecentFiles recentFiles = Serializer <RecentFiles> .Deserialize(fs);

                    foreach (String file in recentFiles.Files)
                    {
                        if (IOServices.File.Exists(file))
                        {
                            HashedEntries.Add(file);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                UIServices.ShowMessageBox(ex.Message, "Error", Buttons.OK, Icon.Error);
            }
        }