internal void AddUsedFile(UseFileInfo usefileinfo) { var lst = GetMRUFileList(); lst.RemoveAll( ufi => ufi.PathFile == usefileinfo.PathFile); // Remove any that already exists. lst.Add(usefileinfo); MRUFileList = Helpers.ToXml(lst, typeof(List<UseFileInfo>)); Save(); }
internal static UseFileInfo Create(string pathfile, DateTime timeOfOpening) { var ret = new UseFileInfo(); ret.Set(pathfile, timeOfOpening); return ret; }