public ProductBundleForm(IProductBundleService productBundleService, IProductService productService) { InitializeComponent(); lblBundleName.Text = ""; lblErrors.Text = ""; _productBundleService = productBundleService; _productService = productService; }
public QuestionsForm(IProductBundleService productBundleService, IProductService productService, IAnswerService answerService) { _productBundleService = productBundleService; _productService = productService; _answerService = answerService; InitializeComponent(); _answerService = answerService; var possibleAgeQuestionAnswers = answerService.GetPossibleAgeQuestionAnswers(); var possibleStudentQuestionAnswers = answerService.GetPossibleStudentQuestionAnswers(); var possibleIncomeQuestionAnswers = answerService.GetPossibleIncomeQuestionAnswers(); chLbxAge.DataSource = possibleAgeQuestionAnswers; chLbxStudent.DataSource = possibleStudentQuestionAnswers; chLbxIncome.DataSource = possibleIncomeQuestionAnswers; }