private void button1_Click(object sender, EventArgs e) { var a = new AddEquip(); //a.Show(); a.ShowDialog(); if (a.DialogResult == DialogResult.OK) { refresh("select items.id, items.name, category.description,items.status from items left join category on category.id = items.categoryID"); setCount("Select COUNT(*) as test from items "); } }