private void ButtonFilialAllRemoveFromSelected_Click(object sender, RoutedEventArgs e) { foreach (ItemFilial item in ItemsFilialSelected) { ItemsFilialAll.Add(item); } ItemsFilialSelected.Clear(); }
private void ListViewFilialsSelected_MouseDoubleClick(object sender, MouseButtonEventArgs e) { ItemFilial itemFilial = ListViewFilialsSelected.SelectedItem as ItemFilial; if (itemFilial is null) { return; } ItemsFilialSelected.Remove(itemFilial); ItemsFilialAll.Add(itemFilial); }
private void ButtonFilialRemoveFromSelected_Click(object sender, RoutedEventArgs e) { List <ItemFilial> itemsToMove = new List <ItemFilial>(); foreach (ItemFilial item in ListViewFilialsSelected.SelectedItems) { itemsToMove.Add(item); } foreach (ItemFilial item in itemsToMove) { ItemsFilialSelected.Remove(item); ItemsFilialAll.Add(item); } }