示例#1
0
        private void butunElanlariGosterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowAllAdvertisementsForm showAllAdvertisementsForm = new ShowAllAdvertisementsForm();

            showAllAdvertisementsForm.GetWorker(worker);
            showAllAdvertisementsForm.ShowDialog();
        }
 private void butunElanlariGosterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (HREntity db = new HREntity())
     {
         var isWorkerAddedCv = db.CurriculumVitaes.ToList().Exists(x => x.Id == worker.Id);
         if (isWorkerAddedCv)
         {
             ShowAllAdvertisementsForm showAllAdvertisementsForm = new ShowAllAdvertisementsForm();
             showAllAdvertisementsForm.GetWorker(worker);
             showAllAdvertisementsForm.ShowDialog();
         }
         else
         {
             MessageBox.Show("Firstly you must add cv");
         }
     }
 }