Exemple #1
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            var selectedItems = GetSelectedItems(lstAvailableItems);

            if (!selectedItems.Any())
            {
                return;
            }

            var destinationIndex = GetSelectedIndex(lstSelectedItems);

            SelectedItems.InsertRange(destinationIndex, selectedItems);

            BindData();
            RaiseSelectedItemsChanged();
        }