Exemplo n.º 1
0
        private void UpdateInventory(object sender, RoutedEventArgs e)
        {
            Inventory newInventory = GeneratedInventoryObjectFromCollectedData();

            _roomController.UpdateInventory(_selectedRoom, _inventoryForUpdate, newInventory);
            _parent.UpdateTable();
            this.Close();
        }
        private void RelocateInventory(object sender, RoutedEventArgs e)
        {
            Room destinationRoom = (Room)RoomsComboBox.SelectedItem;
            int  quantity        = Convert.ToInt32(QuantityBox.Text);

            _roomController.DinamicInventoryRelocation(destinationRoom, _selectedInventory, quantity);
            _parent.UpdateTable();
            this.Close();
        }
Exemplo n.º 3
0
        private void RelocateInventory(object sender, RoutedEventArgs e)
        {
            Room     destinationRoom = (Room)RoomsComboBox.SelectedItem;
            int      quantity        = Convert.ToInt32(Kolicina.Text);
            DateTime pickedDate      = (DateTime)DateTo.SelectedDate;

            _roomController.StaticInventoryRelocation(destinationRoom, _selectedinventory, quantity, pickedDate);
            _parent.UpdateTable();
            this.Close();
        }