private void ButtonFromSelectedAll_Click(object sender, RoutedEventArgs e) { foreach (Infoscreen.Configuration.ItemSystem.ItemChair item in SelectedChairItems) { ChairItems.Add(item); } SelectedChairItems.Clear(); SetButtonsState(); }
private void OneChairFromSelected() { if (!(DataGridSelectedItemChairs.SelectedItem is Infoscreen.Configuration.ItemSystem.ItemChair itemChair)) { return; } ChairItems.Add(itemChair); SelectedChairItems.Remove(itemChair); SetButtonsState(); }