public DodavanjeLekaWindow(LekoviWindow parent) { InitializeComponent(); this._parent = parent; Sastojci.ItemsSource = _medicineIngredientsController.GetAllIngredients(); SastojciList.Items.Clear(); }
public IzmenaLekaWindow(Medicine med, LekoviWindow parent) { InitializeComponent(); this._parent = parent; _medForUpdate = med; List <Ingredient> ingredients = _medicineIngredientsController.GetAllIngredients(); Sastojci.ItemsSource = ingredients; CollectSelectedMedicineData(); }