예제 #1
0
        private void btnDelete_Click(object sender, System.EventArgs e)
        {
            int id = GetSelectedId();

            if (id == -1)
            {
                return;
            }
            DialogResult dr = MsgBox.ShowQuestion(GT.TIP_DELELE_DATAGRID_ROW);

            if (dr == DialogResult.Yes)
            {
                XGDB.DeleteCard(id);
                LoadCardFromDB();
                XGDB.Resolve();
            }
        }