private void button1_Click(object sender, EventArgs e) { Vacancies vacancy = new Vacancies(); ArrayList cv_data = CV_DB.GetAllData(); foreach (CV_Format cv in cv_data) { if (vacancy.lbl_vacancy_salary.Text == cv.CV_User_Salary && vacancy.lbl_vacancy_requirements.Text == cv.CV_User_Skills) { cv_groupbox.BackColor = Color.MidnightBlue; lbl_accept_reason.Visible = true; txbx_accept_reason.Visible = true; btn_accept_reason.Visible = true; } else if (vacancy.lbl_vacancy2_salary.Text == cv.CV_User_Salary && vacancy.lbl_vacancy2_requirements.Text == cv.CV_User_Skills) { cv_groupbox.BackColor = Color.MidnightBlue; lbl_accept_reason.Visible = true; txbx_accept_reason.Visible = true; btn_accept_reason.Visible = true; } else { MessageBox.Show("CV şirkətimizin tələblərinə uyğun deyil,CV-ə imtina verməlisiniz"); } } }
private void Whatching_CV_Form_Load(object sender, EventArgs e) { Visible = false; CV_format cv_control = new CV_format(); cv_control.Location = new Point(14, 20); cv_content.Controls.Add(cv_control); ArrayList cv_data = CV_DB.GetAllData(); foreach (CV_Format cv in cv_data) { cv_control.txbx_loadcv_name.Text = cv.CV_User_Name; cv_control.txbx_loadcv_surname.Text = cv.CV_User_Surname; cv_control.txbx_loadcv_email.Text = cv.CV_User_Email; cv_control.txbx_loadcv_skills.Text = cv.CV_User_Skills; cv_control.txbx_loadcv_salary.Text = cv.CV_User_Salary; } }