/// <summary>
 /// Shows all the emails for the folder
 /// </summary>
 /// <param name="emailList">the email to bee shown</param>
 /// <param name="_headerText">the header text of this usercontrol</param>
 /// <param name="mw">the main window</param>
 public EmailListShower(List <PopClient.emailStruct> emailList, string _headerText, MainWindow mw)
 {
     InitializeComponent();
     headerText.Content = _headerText;
     foreach (PopClient.emailStruct email in emailList)
     {
         EmailListItems newItem = new EmailListItems(email, mw);
         contentPanel.Children.Add(newItem);
     }
 }
 /// <summary>
 /// Shows all the emails for the folder
 /// </summary>
 /// <param name="emailList">the email to bee shown</param>
 /// <param name="_headerText">the header text of this usercontrol</param>
 /// <param name="mw">the main window</param>
 public EmailListShower(List<PopClient.emailStruct> emailList, string _headerText, MainWindow mw)
 {
     InitializeComponent();
     headerText.Content = _headerText;
     foreach (PopClient.emailStruct email in emailList)
     {
         EmailListItems newItem = new EmailListItems(email, mw);
         contentPanel.Children.Add(newItem);
     }
 }