Example #1
0
 public EmailList(string listName, string listDesc, EmailListProvider getEmails, EmailListType listType)
 {
     ListName = listName;
     ListDesc = listDesc;
     GetEmails = getEmails;
     ListType = listType;
 }
Example #2
0
        private void OnBeforeSaveUpdateInteropValues()
        {
            this.OnBeforeSaveUpdateFaxParticipant(ContactSchema.WorkFax, EmailAddressIndex.BusinessFax);
            this.OnBeforeSaveUpdateFaxParticipant(ContactSchema.HomeFax, EmailAddressIndex.HomeFax);
            this.OnBeforeSaveUpdateFaxParticipant(ContactSchema.OtherFax, EmailAddressIndex.OtherFax);
            EmailListType emailListType = EmailListType.None;
            List <int>    list          = new List <int>(6);

            EmailAddressIndex[] array = new EmailAddressIndex[]
            {
                EmailAddressIndex.Email1,
                EmailAddressIndex.Email2,
                EmailAddressIndex.Email3,
                EmailAddressIndex.BusinessFax,
                EmailAddressIndex.HomeFax,
                EmailAddressIndex.OtherFax
            };
            int i   = 0;
            int num = 1;

            while (i < array.Length)
            {
                Participant participant = this.EmailAddresses[array[i]];
                if (participant != null && participant.RoutingType != null)
                {
                    emailListType |= (EmailListType)num;
                    list.Add(i);
                }
                i++;
                num <<= 1;
            }
            this[InternalSchema.EmailListType] = (int)emailListType;
            if (list.Count > 0)
            {
                this[InternalSchema.EmailList] = list.ToArray();
            }
            else
            {
                base.DeleteProperties(new PropertyDefinition[]
                {
                    InternalSchema.EmailList
                });
            }
            base.SetOrDeleteProperty(ContactSchema.LegacyWebPage, base.TryGetProperty(ContactSchema.BusinessHomePage));
        }
Example #3
0
        private void displayAllEmails()
        {
            if (emailsDisplayed != EmailListType.none)
            {
                closeEmailsDisplayWindow();
            }

            infoButtonMessage = "Click on a message to read the content\r\n" +
                                "Press 'delete' to mark checked messages for deletion from server\r\n" +
                                "Press 'delete' again to unmark checked messages\r\n" +
                                "Messages will be deleted from server during the next check for new messages\r\n" +
                                "The deleted messages may still be recovered for a limited time (depends on the server settings)\r\n" +
                                "directly from the server, from the Trash\r\n";

            emailsDisplayed = EmailListType.allEmails;
            displayEmails();
            hideEmailsButton.Enabled    = true;
            showNewEmailsButton.Enabled = true;
            showAllEmailsButton.Enabled = false;
        }
Example #4
0
 private void HideEmailsButton_Click(object sender, EventArgs e)
 {
     closeEmailsDisplayWindow();
     emailsDisplayed = EmailListType.none;
 }