Beispiel #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            Price_UserDB price_UserDB = new Price_UserDB();
            int          a            = price_UserDB.delete(comboBox4.Text, Data.User.ID1);

            if (a == 1)
            {
                MessageBox.Show("删除成功!", "提示", MessageBoxButtons.OK);
                BiaoJia_Load(sender, e);
                comboBox4.SelectedIndex = 0;
            }
            else
            {
                MessageBox.Show("删除失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }