public void GenerateAndSendMultipleChoice(ViewModel.SenderAndRecieverFourPersonsMultipleChoice model) { var item2 = new GenerateAndSendDataQuadrupleDelegateMultiple(GeneralFunctions.GeneratePdfAndSendToRecipients.GenerateAndSendData); item.QuadrupleMultipleChoiceEvent += item2; item.QuadrupleMultipleChoiceEvent(model); item.QuadrupleMultipleChoiceEvent -= item2; }
public static void GenerateAndSendData(ViewModel.SenderAndRecieverFourPersonsMultipleChoice model) { var stringpath = ITextSharpPdfCreator.GeneratefileForCustomers.GeneratePdfFileForCustomer(ReturnPathString.ReturnUniqueFileName(), model.sender.firstname, model.sender.lastname, model.sender.messagetoshow, model.Recipient1.StoreBackgroundImage, model.Recipient1.StoreMp3, model.Recipient1.StoreFont); SmtpMailService.SendCustomerMail.SendMailToCustomer(model.Recipient1.Email, stringpath, model.Recipient1.StoreMp3); var stringpath2 = ITextSharpPdfCreator.GeneratefileForCustomers.GeneratePdfFileForCustomer(ReturnPathString.ReturnUniqueFileName(), model.sender.firstname, model.sender.lastname, model.sender.messagetoshow, model.Recipient2.StoreBackgroundImage, model.Recipient2.StoreMp3, model.Recipient2.StoreFont); SmtpMailService.SendCustomerMail.SendMailToCustomer(model.Recipient2.Email, stringpath, model.Recipient2.StoreMp3); var stringpath3 = ITextSharpPdfCreator.GeneratefileForCustomers.GeneratePdfFileForCustomer(ReturnPathString.ReturnUniqueFileName(), model.sender.firstname, model.sender.lastname, model.sender.messagetoshow, model.Recipient3.StoreBackgroundImage, model.Recipient3.StoreMp3, model.Recipient3.StoreFont); SmtpMailService.SendCustomerMail.SendMailToCustomer(model.Recipient3.Email, stringpath, model.Recipient3.StoreMp3); var stringpath4 = ITextSharpPdfCreator.GeneratefileForCustomers.GeneratePdfFileForCustomer(ReturnPathString.ReturnUniqueFileName(), model.sender.firstname, model.sender.lastname, model.sender.messagetoshow, model.Recipient4.StoreBackgroundImage, model.Recipient4.StoreMp3, model.Recipient4.StoreFont); SmtpMailService.SendCustomerMail.SendMailToCustomer(model.Recipient4.Email, stringpath, model.Recipient4.StoreMp3); }