Esempio n. 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            intent = "";
            foreach (Control c in groupBox1.Controls)
            {
                if (c is CheckBox)
                {
                    CheckBox r = c as CheckBox;
                    if (r.Checked)
                    {
                        intent += r.Text + ",";
                    }
                }
            }
            mysql = "update seeker set seeker_desire='" + intent + "' where seeker_ID=(select ID from userinfo where user_mail='" + 注册界面.user_email + "')";
            SqlCommand mycmd = new SqlCommand(mysql, myconn);

            myconn.Open();
            {
                try
                {
                    mycmd.ExecuteNonQuery();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                }
            }
            myconn.Close();
            Hide();
            登录界面 f_log = new 登录界面();

            f_log.Owner = this.Owner;
            f_log.ShowDialog();
        }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Hide();
            登录界面 f_log = new 登录界面();

            f_log.Owner = this;
            f_log.ShowDialog();
        }