///選択されたフィルターに選択したプレイリストのアイテムを入れる private void FavAddButton_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex == -1) { return; } for (int i = 0; i < FavsCheckListBox.Items.Count; i++) { if (FavsCheckListBox.GetItemChecked(i)) { Xset.filters.fil[i].fav.Add(pathList[listBox1.SelectedIndex]); } } }
///選択したフィルターをプレイリストに表示する private void SelFilDispItem_Click(object sender, EventArgs e) { listBox1.Items.Clear(); pathList.Clear(); for (int i = 0; i < FavsCheckListBox.Items.Count; i++) { if (FavsCheckListBox.GetItemChecked(i)) { foreach (var f in Xset.filters.fil[i].fav) { pathList.Add(f); string fname = path2fname(f); listBox1.Items.Add(fname); } } } }