Exemplo n.º 1
0
        public RecipeMedicamentsForm(int recipeId, RecipesMedicamentsService recipesMedicamentsService)
        {
            _recipeId = recipeId;
            _recipesMedicamentsService = recipesMedicamentsService;

            InitializeComponent();

            _dataGridViewService = new DataGridViewService(RecipeMedicamentsDataGridView);
        }
Exemplo n.º 2
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);
        }