Ejemplo n.º 1
0
        public SubstituteCreateDialogForm(int?initialOriginalMedicamentId,
                                          int?initialSubstituteMedicamentId,
                                          MedicamentsService medicamentsService)
        {
            _medicamentsService = medicamentsService;

            SelectedOriginalMedicamentId   = initialOriginalMedicamentId ?? -1;
            SelectedSubstituteMedicamentId = initialSubstituteMedicamentId ?? -1;

            InitializeComponent();
        }
Ejemplo n.º 2
0
        public SubstitutesForm(Medicament medicament, SubstitutesService substitutesService, MedicamentsService medicamentsService)
        {
            _medicament         = medicament;
            _substitutesService = substitutesService;
            _medicamentsService = medicamentsService;

            InitializeComponent();

            _originalDataGridViewService   = new DataGridViewService(OriginalDataGridView);
            _substituteDataGridViewService = new DataGridViewService(SubstituteDataGridView);
        }
Ejemplo n.º 3
0
        public DiseaseMedicamentCreateDialogForm(int?initialDiseaseId,
                                                 int?initialMedicamentId,
                                                 DiseasesService diseasesService,
                                                 MedicamentsService medicamentsService)
        {
            _diseasesService    = diseasesService;
            _medicamentsService = medicamentsService;

            SelectedDiseaseId    = initialDiseaseId ?? -1;
            SelectedMedicamentId = initialMedicamentId ?? -1;

            InitializeComponent();
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        public RecipesForm(RecipesService recipesService,
                           RecipesMedicamentsService recipesMedicamentsService,
                           MedicamentsService medicamentsService,
                           ClientsService clientsService,
                           DiseasesService diseasesService,
                           RecipeCreator recipeCreator)
        {
            _recipesService            = recipesService;
            _recipesMedicamentsService = recipesMedicamentsService;
            _medicamentsService        = medicamentsService;
            _clientsService            = clientsService;
            _diseasesService           = diseasesService;
            _recipeCreator             = recipeCreator;

            InitializeComponent();

            _recipesDataGridViewService = new DataGridViewService(RecipesDataGridView);
        }
Ejemplo n.º 6
0
        public DiseasesMedicamentsForm(int?diseaseId,
                                       int?medicamentId,
                                       DiseasesMedicamentsService diseasesMedicamentsService,
                                       DiseasesService diseasesService,
                                       MedicamentsService medicamentsService,
                                       DosagesService dosagesService)
        {
            _initialDiseaseId    = diseaseId;
            _initialMedicamentId = medicamentId;

            _diseasesMedicamentsService = diseasesMedicamentsService;
            _diseasesService            = diseasesService;
            _medicamentsService         = medicamentsService;
            _dosagesService             = dosagesService;

            InitializeComponent();

            _dataGridViewService = new DataGridViewService(DiseasesMedicamentsDataGridView);
        }
Ejemplo n.º 7
0
        public DiseasesForm(DiseasesService diseasesService,
                            DiseasesMedicamentsService diseasesMedicamentsService,
                            DiseasesSymptomsService diseasesSymptomsService,
                            MedicamentsService medicamentsService,
                            SymptomsService symptomsService,
                            DosagesService dosagesService)
        {
            _diseasesService = diseasesService;

            _diseasesMedicamentsService = diseasesMedicamentsService;
            _diseasesSymptomsService    = diseasesSymptomsService;
            _medicamentsService         = medicamentsService;
            _symptomsService            = symptomsService;
            _dosagesService             = dosagesService;

            InitializeComponent();

            _dataGridViewService = new DataGridViewService(DiseasesDataGridView);
        }