private void runbut_Click(object sender, EventArgs e) { backwarning.RunWorkerAsync(); string[] vs = new string[5] { "in", "out", "sup", "product", "store" }; foreach (string i in vs) { string sql = string.Format("delete from [{0}]", i); SqlHelper.ExecuteNonQuery(SqlHelper.constr, CommandType.Text, sql); } MessageBox.Show("删除成功"); main mai = (main)this.Owner; mai.prore(); mai.inre(); mai.outre(); mai.spre(); }
private void spadd_FormClosed(object sender, FormClosedEventArgs e) { main mai = (main)this.Owner; mai.spre(); }