Exemplo n.º 1
0
 public void AddAccount(EmailAccount newAccount)
 {
     accounts.Add(newAccount);
 }
Exemplo n.º 2
0
 public void StartGettinMessages(EmailAccount currentAccount)
 {
     _timer.Interval = TimeSpan.FromMilliseconds(5000);
     _timer.Tick    += (sender, args) => DownloadMessagesAsync(currentAccount);
     _timer.Start();
 }
Exemplo n.º 3
0
        private async void DownloadMessagesAsync(EmailAccount currentAccount)
        {
            var messages = await Task <List <ReceivedEmail> > .Factory.StartNew(DownloadMessages, currentAccount);

            ManageEmailChanges(messages);
        }
Exemplo n.º 4
0
 public DeleteMessageData(List <UniqueId> uids, EmailAccount currentAccount)
 {
     this.uids           = uids;
     this.currentAccount = currentAccount;
 }