Esempio n. 1
0
        private void cancelButton_Click(object sender, EventArgs e)
        {
            if (flag == "0")
            {
                changeImfor chanInfo = new changeImfor();
                chanInfo.Show();
                this.Hide();
            }
            else
            {
                Form3 form3 = new Form3();
                form3.Show();
                this.Hide();

            }
        }
 private void BuyForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if(flag1 == "0")
     {
         Form4 form4 = new Form4();
         form4.Show();
     }
     else if(flag1 == "1")
     {
         changeImfor chanInfo = new changeImfor();
         chanInfo.Show();
     }
     else
     {
         jiaoYiJiLu jilu = new jiaoYiJiLu();
         jilu.Show();
     }
     this.Hide();
 }
 private void button3_Click(object sender, EventArgs e)
 {
     string con = "", sql = "";
     con = "Server=.;Database=keshe;user id = sa;password = 316023";
     SqlConnection myCon = new SqlConnection(con);
     myCon.Open();
     sql = string.Format("delete from pitureTable;delete from thing where Tpic = '{0}'", link);
     SqlCommand myCom = new SqlCommand(sql, myCon);
     myCom.ExecuteNonQuery();
     myCon.Close();
     MessageBox.Show("删除成功!");
     changeImfor chanInfo = new changeImfor();
     chanInfo.Show();
     this.Hide();
 }
Esempio n. 4
0
        private void Form5_FormClosing(object sender, FormClosingEventArgs e)
        {
            if(flag == "0")
            {
                changeImfor chanInfo = new changeImfor();
                chanInfo.Show();
                this.Hide();
            }
            else
            {
                Form3 form3 = new Form3();
                form3.Show();
                this.Hide();

            }
        }