Пример #1
0
        private void button_Del(BoxExchangeEditor bx, BoxExchangeEditor bx_other, List<string> src)
        {
            if (bx.TargetBox.SelectedItem == null) return;
            //
            string item1 = bx.TargetBox.SelectedItems.OfType<string>().FirstOrDefault(item => item == "設定");
            string item2 = bx_other.TargetBox.Items.OfType<string>().FirstOrDefault(item => item == "設定");
            if (item1 != null && item2 == null)
            {
                MessageBox.Show("設定は上部表示ボタンか右クリック表示項目のどちらかに必要です");
                return;
            }

            bx.deleteItems(bx.TargetBox);
            reLoadButtonItem(bx, src);
        }