Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            int ID;

            if (!int.TryParse(deleteByIDTextbox.Text, out ID))
            {
                MessageBox.Show("ID must contain numbers only", "ID not a number", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            General.DeleteByID(ID, databasePath);
            deleteByIDTextbox.Text = "";
        }