private void button7_Click(object sender, EventArgs e)
        {
            ////////////////////////////////////////////////////////

            con.Open();
            cmd1 = new SqlCommand("INSERT INTO feedbk(nameuser,creative,leadership,hardwork,punctual, work,coding) VALUES (@nameuser,@creative,@leadership,@hardwork,@punctual,@work,@coding)", con);
            cmd1.Parameters.AddWithValue("@nameuser", textBox1.Text.ToString());
            cmd1.Parameters.AddWithValue("@creative", comboBox1.Text.ToString());
            cmd1.Parameters.AddWithValue("@Leadership", comboBox2.Text.ToString());
            cmd1.Parameters.AddWithValue("@hardwork", comboBox3.Text.ToString());
            cmd1.Parameters.AddWithValue("@punctual", comboBox4.Text.ToString());
            cmd1.Parameters.AddWithValue("@work", comboBox5.Text.ToString());
            cmd1.Parameters.AddWithValue("@coding", comboBox6.Text.ToString());
            cmd1.ExecuteNonQuery();
            con.Close();


            MessageBox.Show($"Applicant {textBox1.Text} Feedback saved");


            this.Hide();
            Show_feedback shfeed = new Show_feedback();

            shfeed.ShowDialog();
            this.Close();
        }
Beispiel #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            this.Hide();
            Show_feedback fd = new Show_feedback();

            fd.ShowDialog();
            this.Close();
        }