private void ButtonNew_Click(object sender, RoutedEventArgs e) { // creates a new breakpoint and adds it to the BPClass list // if the search/filter combo box is being used, pass the reference along to create new breakpoint to the shown cell Cells selectedCell = comboSearchList.SelectedItem as Cells; BPManager.AddNewBreakpoint(selectedCell); // set the focus to the newly added Breakpoint BPList.SelectedIndex = BPList.Items.Count - 1; BPList.Focus(); }