コード例 #1
0
        private void btnRemove_Click(object sender, EventArgs e)
        {
            DialogResult dr = MessageBox.Show("Delete selected cards?", "Warning", MessageBoxButtons.YesNoCancel);

            if (dr != System.Windows.Forms.DialogResult.Yes)
            {
                return;
            }

            for (int i = 0; i < dgvDefections.Rows.Count; i++)
            {
                if ((bool)dgvDefections.Rows[i].Cells[clmnSelect.Index].Value)
                {
                    string cp = dgvDefections.Rows[i].Cells[clmnCardPath.Index].Value.ToString();
                    Globals.RemoveCard(cp);
                }
            }
            Diagnose();
        }