Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 public SmsModel(string path) : base(path)
 {
     loadedData = SmsHelper.ReadMessage(path);
 }