Exemplo n.º 1
0
 public void setParent(IMailUserInterface parent, string[] history, string[] favourites, string[] recipients)
 {
     this.parentPopup = parent;
     if (history != null)
     {
         foreach (string str in history)
         {
             this.listBoxRecent.Items.Add(str);
         }
     }
     if (favourites != null)
     {
         foreach (string str2 in favourites)
         {
             this.listBoxFavourites.Items.Add(str2);
         }
     }
     if (recipients != null)
     {
         foreach (string str3 in recipients)
         {
             this.listBoxRecipients.Items.Add(str3);
         }
     }
     this.btnSearch.Enabled          = false;
     this.btnAdd.Enabled             = false;
     this.btnAddToFavourites.Enabled = false;
 }
Exemplo n.º 2
0
 public void setParent(IMailUserInterface parent, string[] history, string[] favourites, string[] recipients)
 {
     this.parentPopup = parent;
     if (history != null)
     {
         foreach (string str in history)
         {
             this.listBoxRecent.Items.Add(str);
         }
     }
     if (favourites != null)
     {
         foreach (string str2 in favourites)
         {
             this.listBoxFavourites.Items.Add(str2);
         }
     }
     if (recipients != null)
     {
         foreach (string str3 in recipients)
         {
             this.listBoxRecipients.Items.Add(str3);
         }
     }
     this.btnSearch.Enabled = false;
     this.btnAdd.Enabled = false;
     this.btnAddToFavourites.Enabled = false;
 }