void worker_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) { EmailAnalyzerLibrary.ReadEmails emails = new EmailAnalyzerLibrary.ReadEmails(); winFabInterest = emails.GetIndividualInterest(emailCount,searchInFolderNames); }
private void DisplayOutlookFolders() { List<string> folderNames = new List<string>(); ReadEmails emailObj = new ReadEmails(); folderNames = emailObj.TriggerOutlook(); foreach (string itm in folderNames) { CheckBox chkBox = new CheckBox(); chkBox.Content = itm; this.Email_Folders.Items.Add(chkBox); } this.UpdateLayout(); }