Exemplo n.º 1
0
        private void OneChairToSelected()
        {
            if (!(DataGridItemChairs.SelectedItem is Infoscreen.Configuration.ItemSystem.ItemChair itemChair))
            {
                return;
            }

            ChairItems.Remove(itemChair);
            SelectedChairItems.Add(itemChair);

            SetButtonsState();
        }
Exemplo n.º 2
0
        private void ButtonToSelectedAll_Click(object sender, RoutedEventArgs e)
        {
            foreach (Infoscreen.Configuration.ItemSystem.ItemChair item in ChairItemsView)
            {
                SelectedChairItems.Add(item);
            }

            foreach (Infoscreen.Configuration.ItemSystem.ItemChair item in SelectedChairItems)
            {
                ChairItems.Remove(item);
            }

            SetButtonsState();
        }