private void OneChairToSelected() { if (!(DataGridItemChairs.SelectedItem is Infoscreen.Configuration.ItemSystem.ItemChair itemChair)) { return; } ChairItems.Remove(itemChair); SelectedChairItems.Add(itemChair); SetButtonsState(); }
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(); }