private void RoomInventory(object sender, RoutedEventArgs e)
 {
     if (datagridProstorije.SelectedItem != null)
     {
         OpremaWindow inventoryWindow = new OpremaWindow((Room)datagridProstorije.SelectedItem, this);
         inventoryWindow.Show();
     }
 }
 public RasporedjivanjeOpreme(Room room, Inventory inventory, OpremaWindow parent)
 {
     InitializeComponent();
     this._parent              = parent;
     _selectedInventory        = inventory;
     _selectedRoom             = room;
     RoomsComboBox.ItemsSource = _roomController.DisplayRoomsForRelocating(_selectedRoom);
 }
Пример #3
0
 public IzmenaOpreme(Room room, Inventory inventory, OpremaWindow parent)
 {
     InitializeComponent();
     this._parent        = parent;
     _inventoryForUpdate = inventory;
     _selectedRoom       = room;
     SelectedInventoryData();
 }
Пример #4
0
        public DodavanjeOpreme(Room room, OpremaWindow parent)
        {
            InitializeComponent();
            this._parent  = parent;
            _selectedRoom = room;

            IdProstorije.Text = _selectedRoom.RoomId.ToString();
        }
Пример #5
0
        public RasporedjivanjeStatickeWindow(Room room, Inventory inventory, OpremaWindow parent)
        {
            InitializeComponent();
            this._parent              = parent;
            _selectedinventory        = inventory;
            _selectedRoom             = room;
            RoomsComboBox.ItemsSource = _roomController.DisplayRoomsForRelocating(_selectedRoom);

            CalendarDateRange calendar = new CalendarDateRange(DateTime.MinValue, DateTime.Today.AddDays(-1));

            DateTo.BlackoutDates.Add(calendar);
        }