Esempio n. 1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Are you sure that you want to Delete this member details ?");
            Id = textbox_Staff_Members_Id.Text;
            DB_Connection dB_Connection = new DB_Connection();
            string        query         = "DELETE FROM Staff_Member Where Id='" + Id + "'";

            dB_Connection.Delete(query);
        }
Esempio n. 2
0
        private void btnDelete_emod_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Are you sure that you want to Delete this Equipment details ?");
            equipId = txtmodeid.Text;
            DB_Connection dB_Connection = new DB_Connection();
            string        query         = "DELETE FROM Equipment Where Equip_ID='" + equipId + "'";

            dB_Connection.Delete(query);
        }