Beispiel #1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            string message = "Are you sure you want to delete?";

            MessageBoxButtons buttons = MessageBoxButtons.YesNo;
            DialogResult      result;

            result = MessageBox.Show(message, "Delete Customer", buttons);

            if (result == DialogResult.Yes)
            {
                var helper = new CustomerHelper(liteDBPath);
                helper.Delete(selectedIssueItem);
                RefreshGridView(helper.GetAll());
            }
            else
            {
            }
        }