public void refreshData() { listBox1.Items.Clear(); Deadlines = new Deadlines(SQL); List<Deadline> tbl = Deadlines.getList("DESC"); foreach (Deadline collumn in tbl) { listBox1.Items.Add(collumn); } button3.Enabled = false; HandleSecurity(); }