protected virtual void OnMailFetched(MailFetchedEventArgs e) { if (MailFetched != null) { MailFetched(this, e); } }
static void account_MailFetched(object sender, MailFetchedEventArgs e) { PictureCollector.PictureCollected += new PictureCollectedEventHandler(PictureCollector_PictureCollected); PictureCollector.CollectImages(e.mail); }
void account_MailFetched(object sender, MailFetchedEventArgs e) { PictureCollector.PictureCollected += new PictureCollectedEventHandler(PictureCollector_PictureCollected); PictureCollector.CollectImages(e.mail); MainProgress.Dispatcher.Invoke(new Action(() => MainProgress.Value++)); }