public WarehouseDrinkAddWindow(ref HurtowniaNapojowDataSet.NapojeProducentaRow productRow) { InitializeComponent(); _producerDrink = new ProducerDrinkHelper(productRow); _warehouseProduct = new WarehouseDrink(); ExpiryDate.SelectedDate = DateTime.Now; SetBinding(); }
public WarehouseDrinkEditWindow(ref HurtowniaNapojowDataSet.NapojeHurtowniRow productWarehouseRow) { InitializeComponent(); _productWarehouseRow = productWarehouseRow; _warehouseProduct = new WarehouseDrink(productWarehouseRow); _producerDrink = new ProducerDrinkHelper(DataBaseProducerDrinkHelper.GetDrinkByID(productWarehouseRow.id_napoju_producenta)); SetBinding(); }