public void GenerateAndSendMultipleChoice(ViewModel.SenderAndRecieverTwoPersonsMultipleChoice model) { var item2 = new GenerateAndSendDataDoubleDelegateMultiple(GeneralFunctions.GeneratePdfAndSendToRecipients.GenerateAndSendData); item.DoubleMultipleChoiceEvent += item2; item.DoubleMultipleChoiceEvent(model); item.DoubleMultipleChoiceEvent -= item2; }
public static void GenerateAndSendData(ViewModel.SenderAndRecieverTwoPersonsMultipleChoice 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); }