public SubstitutesForm(Medicament medicament, SubstitutesService substitutesService, MedicamentsService medicamentsService) { _medicament = medicament; _substitutesService = substitutesService; _medicamentsService = medicamentsService; InitializeComponent(); _originalDataGridViewService = new DataGridViewService(OriginalDataGridView); _substituteDataGridViewService = new DataGridViewService(SubstituteDataGridView); }
public MedicamentsForm(MedicamentsService medicamentsService, DiseasesService diseasesService, DiseasesMedicamentsService diseasesMedicamentsService, SubstitutesService substitutesService, DosagesService dosagesService) { _medicamentsService = medicamentsService; _diseasesService = diseasesService; _diseasesMedicamentsService = diseasesMedicamentsService; _substitutesService = substitutesService; _dosagesService = dosagesService; InitializeComponent(); _dataGridViewService = new DataGridViewService(MedicamentsDataGridView); }