Ejemplo n.º 1
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            string sex = "";

            if (radioButtonMan.Checked == true)
            {
                sex = "男";
            }
            if (radioButtonWoman.Checked == true)
            {
                sex = "女";
            }
            mysql = "update user_info set uname='" + textBoxName.Text + "', sex='" + sex + "' , desire='" + textBoxDesire.Text + "' , describe='" + textBoxDescribe.Text + "' where umail='" + 登录界面.mail + "'";
            SqlCommand mycmd = new SqlCommand(mysql, myconn);

            myconn.Open();
            try
            {
                mycmd.ExecuteNonQuery();
                MessageBox.Show("修改成功!", "提示");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            myconn.Close();

            EditGroupBox.SendToBack();
            NoticeBox.SendToBack();
            InfoGroupBox.BringToFront();
            fill_info(登录界面.mail);
        }
Ejemplo n.º 2
0
 public 用户中心()
 {
     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     InitializeComponent();
     fill_info(登录界面.ID);
     InfoGroupBox.BringToFront();
 }
Ejemplo n.º 3
0
        private void InfoLabel_Click(object sender, EventArgs e)
        {
            fill_info(登录界面.ID);
            InfoGroupBox.BringToFront();

            /*InfoGroupBox.Show();
            *  RecordGroupBox.Hide();
            *  CVGroupBox.Hide();
            *  EditGroupBox.Hide();*/
        }
Ejemplo n.º 4
0
 private void EditButton_Click(object sender, EventArgs e)
 {
     InfoGroupBox.SendToBack();
     EditGroupBox.BringToFront();
     radioButtonMan.Checked = true;
     textBoxMail.Text       = 登录界面.mail;
     textBoxName.Text       = labelUname2.Text;
     textBoxDesire.Text     = labelDesire.Text;
     textBoxDescribe.Text   = labelDesc.Text;
     if (labelSex.Text == "男")
     {
         radioButtonMan.Checked = true;
     }
     if (labelSex.Text == "女")
     {
         radioButtonWoman.Checked = true;
     }
 }
Ejemplo n.º 5
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            mysql = "update seeker set seeker_name='" + textBoxName.Text + "' , seeker_sex='" + comboBoxSex.SelectedItem + "' , seeker_tel='" + textBoxTel.Text + "' , seeker_status='" + comboBoxStatus.SelectedItem + "' , seeker_degree='" + comboBoxDegree.SelectedItem + "' , seeker_school='" + comboBoxSchool.SelectedItem + "' , seeker_major='" + comboBoxMajor.SelectedItem + "', seeker_religion='" + comboBoxReligion.SelectedItem + "', seeker_describe='" + textBoxDesc.Text + "' where seeker_ID=" + 登录界面.ID;
            SqlCommand mycmd = new SqlCommand(mysql, myconn);

            myconn.Open();
            try
            {
                mycmd.ExecuteNonQuery();
                MessageBox.Show("修改成功!", "提示");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            myconn.Close();
            fill_info(登录界面.ID);

            /*EditGroupBox.Hide();
            *  InfoGroupBox.Show();*/
            InfoGroupBox.BringToFront();
        }
Ejemplo n.º 6
0
 private void 用户中心_Load(object sender, EventArgs e)
 {
     InfoGroupBox.BringToFront();
 }
Ejemplo n.º 7
0
 private void InfoLabel_Click(object sender, EventArgs e)
 {
     fill_info(登录界面.mail);
     NoticeBox.SendToBack();
     InfoGroupBox.BringToFront();
 }