Exemplo n.º 1
0
        private string ConcatAddresses(IEnumerable <Mailbox> addresses)
        {
            var list = new MailboxList();

            foreach (Mailbox address in addresses)
            {
                list.Add(address);
            }
            return(list.ToString());
        }
Exemplo n.º 2
0
        private string ConvertAddressesToString(IEnumerable <Mailbox> addresses)
        {
            var list = new MailboxList();

            if (addresses != null)
            {
                foreach (Mailbox address in addresses)
                {
                    list.Add(address);
                }
            }
            return(list.ToString());
        }
Exemplo n.º 3
0
        private void h_TestFill()
        {
            Mailbox item1 = new Mailbox("*****@*****.**");

            item1.LetterList.Add(new Letter("*****@*****.**", "*****@*****.**", "Test"));
            item1.LetterList.Add(new Letter("*****@*****.**", "*****@*****.**", "Test read")
            {
                FlagRead = true
            });

            MailboxList.Add(item1);

            Mailbox item2 = new Mailbox("*****@*****.**");

            MailboxList.Add(item2);
        }
		private string ConvertAddressesToString(IEnumerable<Mailbox> addresses)
		{
			var list = new MailboxList();
			if (addresses != null)
				foreach (Mailbox address in addresses)
					list.Add(address);
			return list.ToString();
		}