Esempio n. 1
0
        private void addout_FormClosed(object sender, FormClosedEventArgs e)
        {
            main mai = (main)this.Owner;

            mai.outre();
            mai.prore();
        }
Esempio n. 2
0
        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();
        }