/// <summary>
 /// Base class for different folders
 /// </summary>
 /// <param name="_folderMenu">the folder menu where the folder is placed</param>
 /// <param name="_mw">the main window</param>
 public Folders(FolderMenu _folderMenu, MainWindow _mw)
 {
     InitializeComponent();
     folderMenu = _folderMenu;
     user = folderMenu.user;
     folderImg = "folder.jpg";
     mw = _mw;
 }
 /// <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>
 /// Folder menu contain a user and all its folders
 /// </summary>
 /// <param name="_user">The user for this folder menu</param>
 /// <param name="_mw">the main window</param>
 public FolderMenu(User.user _user, MainWindow _mw)
 {
     user = _user;
     mw = _mw;
     InitializeComponent();
 }
 /// <summary>
 /// an item for EmailListShower
 /// </summary>
 /// <param name="_email">PopClient.emailStruct</param>
 /// <param name="_mw">MainWindow</param>
 public EmailListItems(PopClient.emailStruct _email, MainWindow _mw)
 {
     InitializeComponent();
     email = _email;
     mw = _mw;
 }
示例#5
0
 public Sendt(FolderMenu _folderMenu, MainWindow _mw)
     : base(_folderMenu, _mw)
 {
     folderName = "Sendt";
 }
示例#6
0
 /// <summary>
 /// An Inbox folder
 /// </summary>
 /// <param name="_folderMenu">the folder mene</param>
 /// <param name="_mw">the main window</param>
 public Inbox(FolderMenu _folderMenu, MainWindow _mw)
     : base(_folderMenu, _mw)
 {
     folderName = "Indbakke";
 }
示例#7
0
 /// <summary>
 /// An Trash folder
 /// </summary>
 /// <param name="_folderMenu">the folder mene</param>
 /// <param name="_mw">the main window</param>
 public Trash(FolderMenu _folderMenu, MainWindow _mw)
     : base(_folderMenu, _mw)
 {
     folderName = "Papirkurv";
     folderImg = "trash-empty.jpg";
 }
示例#8
0
 /// <summary>
 /// An Inbox folder
 /// </summary>
 /// <param name="_folderMenu">the folder mene</param>
 /// <param name="_mw">the main window</param>
 public SpamFilter(FolderMenu _folderMenu, MainWindow _mw)
     : base(_folderMenu, _mw)
 {
     folderName = "Spam";
 }
示例#9
0
 /// <summary>
 /// A folder
 /// </summary>
 /// <param name="_folderMenu">the folder mene</param>
 /// <param name="_mw">the main window</param>
 public Folder(FolderMenu _folderMenu, MainWindow _mw)
     : base(_folderMenu, _mw)
 {
     folderName = "Mapper";
 }