Example #1
0
        private NotificationFileCollection ReadAllNotificationFilesFromDisk()
        {
            NotificationFileCollection RetVal = new NotificationFileCollection();

            string[] Files = Directory.GetFiles(_InboxDir, "*--*--*.xml");
            foreach (string FileName in Files)
            {
                FileInfo Info = new FileInfo(FileName);
                RetVal.Add(new NotificationFile(Info.Name, Info.CreationTime));
            }
            RetVal.RemoveNewFiles(30);
            RetVal.SortByAge();
            return(RetVal);
        }
 private NotificationFileCollection ReadAllNotificationFilesFromDisk()
 {
     NotificationFileCollection RetVal = new NotificationFileCollection();
       string[] Files = Directory.GetFiles(_InboxDir, "*--*--*.xml");
       foreach (string FileName in Files) {
     FileInfo Info = new FileInfo(FileName);
     RetVal.Add(new NotificationFile(Info.Name, Info.CreationTime));
       }
       RetVal.RemoveNewFiles(30);
       RetVal.SortByAge();
       return RetVal;
 }