예제 #1
0
        private void FillCache()
        {
            var mailPaths = MailHelper.ListMailFiles(Properties.Settings.Default.MailDir);

            foreach (var mailPath in mailPaths.Reverse()) // Fill cache from reverse to not run from the same direction as HomeController.GetMailListModel
            {
                MailHelper.ReadMessage(mailPath);
            }

            var smsPaths = SmsHelper.ListSmsFiles(Properties.Settings.Default.MailDir);

            foreach (var smsPath in smsPaths.Reverse())
            {
                SmsHelper.ReadMessage(smsPath);
            }
        }
예제 #2
0
 public SmsModel(string path) : base(path)
 {
     loadedData = SmsHelper.ReadMessage(path);
 }