Пример #1
0
 private void ViewButton()
 {
     if (PageHelper.isEmployer)
     {
         MessageBox.Show("Employer: View job profile");
     }
     else
     {
         PageHelper.pageReferrer = this.Name + "Seeker";
         ViewDetailsPartial detailsPartial = new ViewDetailsPartial();
         detailsPartial.ShowDialog();
     }
 }
Пример #2
0
        private void getIndexWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            try
            {
                if (PageHelper.isEmployer)
                {
                    JobSeeker_Details jobSeeker = null;
                    PageHelper.id = jobSeeker_Details.id;
                    EmployerApi.StartAsync("GET_JobSeeker_Profile_w_Resume", PageHelper.id);


                    jobSeeker = (JobSeeker_Details)EmployerApi.GetSingleSeeker();
                    PageHelper.globalTitle       = jobSeeker.FirstName + ", " + jobSeeker.LastName;
                    PageHelper.globalDescription = jobSeeker.Description;
                    PageHelper.globalSkills      = jobSeeker.SkillSet;
                }
                else
                {
                    EmployerJob empJob = null;
                    PageHelper.id = employerJob.ID;
                    EmployerApi.StartAsync("GET", PageHelper.id); //todo change to EmployerJob


                    empJob = (EmployerJob)EmployerApi.GetSingle();
                    PageHelper.globalTitle       = empJob.JobTitle;
                    PageHelper.globalDescription = empJob.Description;
                    PageHelper.globalSkills      = empJob.SkillSet;
                }

                PageHelper.pageReferrer = this.Name;
                ViewDetailsPartial viewDetails = new ViewDetailsPartial();
                viewDetails.Text = (PageHelper.isEmployer) ? "Candidate" : "Job Details";
                viewDetails.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Err: Could not connect to server" + "==> " + ex);
            }
        }
Пример #3
0
        private void backgroundWorkerListView_DoWork(object sender, DoWorkEventArgs e)
        {
            try
            {
                PageHelper.id    = singleJobItemPlaceHolder.ID;
                PageHelper.subId = singleJobItemPlaceHolder.SubID;
                EmployerApi.StartAsync("GET", singleJobItemPlaceHolder.ID);
                object tempJob = new object();
                tempJob   = EmployerApi.GetSingle();
                singleJob = (EmployerJob)tempJob;

                PageHelper.globalTitle       = singleJob.JobTitle;
                PageHelper.globalDescription = singleJob.Description;
                PageHelper.globalSkills      = singleJob.SkillSet;
                PageHelper.pageReferrer      = this.Name;
                ViewDetailsPartial viewDetails = new ViewDetailsPartial();
                viewDetails.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Err: Could not connect to server");
            }
        }