private void DeleteCommandHandler(object sender, ExecutedRoutedEventArgs e) { if (listBox_Main.SelectedItem != null) { V4Data data = (V4Data)listBox_Main.SelectedItem; MainColl.Remove(data.MInfo, data.FInfo); } }
private void Item_Remove_Click(object sender, RoutedEventArgs e) { if (listBox_Main.SelectedItem != null) { V4Data data = (V4Data)listBox_Main.SelectedItem; MainColl.Remove(data.MInfo, data.FInfo); } }