public ViewCandidatesWindow(Vacancy vacancy)
        {
            InitializeComponent();
            viewcandidatesTitle.Content = "Applied Candidates for this Job";
            List <User>    userList = sc.candidateSearch(vacancy.JobId);
            CandidateBoxUC cbUC;

            foreach (User user in userList)
            {
                cbUC = new CandidateBoxUC(user);
                VCView.Children.Add(cbUC);
            }
        }
        private void addSuggestions(WrapPanel wp, string location)
        {
            string[]       s = location.Split(' ');
            CandidateBoxUC cbUC;
            List <User>    userList;
            List <string>  skillList = new List <string>();

            foreach (Button b in wp.Children)
            {
                skillList.Add(b.Content.ToString());
            }
            userList = sc.candidateSearch(skillList, s[2]);
            foreach (User user in userList)
            {
                cbUC = new CandidateBoxUC(user);
                VCView.Children.Add(cbUC);
            }
        }