Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            //adding cv data to cv class//
            CV_Format cv_format = new CV_Format();

            cv_format.CV_User_Name    = txbx_cv_name.Text;
            cv_format.CV_User_Surname = txbx_cv_surname.Text;
            cv_format.CV_User_Email   = txbx_cv_email.Text;
            cv_format.CV_User_Skills  = txbx_cv_skills.Text;
            cv_format.CV_User_Salary  = txbx_cv_salary.Text;

            //checking cv texbox inputs data//
            Validator validator = new Validator();

            if (validator.cvChecking(cv_format))
            {
                //sending cv to company if doesn't has any error//
                string[] cv_errors = validator.GetAllCVerrorsArray();
                if (cv_errors.Length == 0)
                {
                    CV_DB.AddCV(cv_format);
                    MessageBox.Show("CV uğurla göndərildi" + "\n" + "Yuxarıdakı seansı bitir bölməsinə click edərək sistemi bağlamalısınız");
                }
                else
                {
                    MessageBox.Show("CV tamamlanmamışdır zəhmət olmasa bütün bölmələri doldurun");
                }
            }
        }
Exemple #2
0
        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;
            }
        }