private void button1_Click(object sender, EventArgs e) { Class1.RemoveFromDatabase(Convert.ToInt16(textBox1.Text), listBox1); }