コード例 #1
0
        private void Remove_Click(object sender, RoutedEventArgs e)
        {
            var           selectedLB = listBox_Main.SelectedItems;
            List <V5Data> Items      = new List <V5Data>();

            Items.AddRange(selectedLB.Cast <V5Data>());
            foreach (V5Data item in Items)
            {
                MainCollection.Remove(item.Info, item.Time);
            }
            ErrorMsg();
        }
コード例 #2
0
        private void DeleteCommandHandler(object sender, ExecutedRoutedEventArgs e)
        {
            V5Data data = listBox_Main.SelectedItem as V5Data;

            mainCollection.Remove(data.MetaData, data.DateMod);
        }