コード例 #1
0
 public WarehouseDrinkAddWindow(ref HurtowniaNapojowDataSet.NapojeProducentaRow productRow)
 {
     InitializeComponent();
     _producerDrink = new ProducerDrinkHelper(productRow);
     _warehouseProduct = new WarehouseDrink();
     ExpiryDate.SelectedDate = DateTime.Now;
     SetBinding();
 }
コード例 #2
0
 public WarehouseDrinkEditWindow(ref HurtowniaNapojowDataSet.NapojeHurtowniRow productWarehouseRow)
 {
     InitializeComponent();
     _productWarehouseRow = productWarehouseRow;
     _warehouseProduct = new WarehouseDrink(productWarehouseRow);
     _producerDrink = new ProducerDrinkHelper(DataBaseProducerDrinkHelper.GetDrinkByID(productWarehouseRow.id_napoju_producenta));
     SetBinding();
 }