private void m_wndViewOrderRemoveButton_Click(object sender, RoutedEventArgs e) { SimpleColumnDesc ThisListItem = m_aShowColumnDestinationList[m_wndViewOrderDestinationList.SelectedIndex]; m_aShowColumnDestinationList.RemoveAt(m_wndViewOrderDestinationList.SelectedIndex); m_aShowColumnSourceList.Add(ThisListItem); return; }
private void m_wndViewOrderMoveDownButton_Click(object sender, RoutedEventArgs e) { int iSelectedIndex = m_wndViewOrderDestinationList.SelectedIndex; SimpleColumnDesc ThisListItem = m_aShowColumnDestinationList[iSelectedIndex]; m_aShowColumnDestinationList.RemoveAt(iSelectedIndex); m_aShowColumnDestinationList.Insert(iSelectedIndex + 1, ThisListItem); m_wndViewOrderDestinationList.SelectedIndex = iSelectedIndex + 1; m_wndViewOrderDestinationList.Focus(); /// Doesn't focus the item the way a mouse click does, though. }