Beispiel #1
0
 public string[] GetAllSendLists()
 {
     lists = new SendingLists();
     return lists.getTitles().ToArray<string>();
 }
 public string[] PutInMembersLists(string title)
 {
     lists = new SendingLists();
     return lists.getNameAndEmails(title).ToArray<string>();
 }
Beispiel #3
0
 public int GetNumberOfSendLists()
 {
     lists = new SendingLists();
     return lists.getTitles().Count;
 }
 private void bottomButtonSendDelivery(object sender, EventArgs e)
 {
     yo = new YO_class();
     yo.ThereIsExceptions += new YO_class.EventHandler(yo_ThereIsExceptions);
     HTMLWorkSpace.setTextNoTags(yo.pasteLetter(HTMLWorkSpace.getTextNoTags().Split(' ')));
     SendMail sendMail = new SendMail();
     if (this.workSpaceTableLayoutPanel.Controls.Contains(chooseComboBox)) {
         SendingLists sendLists = new SendingLists();
         List<string> emails = sendLists.getEmails(chooseComboBox.SelectedItem.ToString());
         foreach (string email in emails) {
             //sendMail.Send(email, HTMLWorkSpace.Text, Program.Data.MainUser.Email, Program.Data.MainUser.EmailPassword);
         }
     }
     if (this.workSpaceTableLayoutPanel.Controls.Contains(mailAdressDisTextBox)) {
         //sendMail.Send(mailAdressDisTextBox.Text, HTMLWorkSpace.Text, Program.Data.MainUser.Email, Program.Data.MainUser.EmailPassword);
     }
     throw new NotImplementedException();
 }