private void delBtn_Click(object sender, RoutedEventArgs e)
        {
            ProfileInteractionsControl pic = ProfileInteractionsControl.getInstance();

            pic.DeleteVacancy(currentUser, vacancy);
            Profile newprofile = new Profile(currentUser);

            newprofile.Show();
            profile.Close();
        }
Beispiel #2
0
        public JobsBoxUC(Vacancy vacancy, User userRef)
        {
            InitializeComponent();
            this.vacancy = vacancy;
            this.userRef = userRef;

            PopulateJB();
            if (ProfileInteractionsControl.getInstance().alreadyAddedApplication(vacancy, userRef))
            {
                applyBtn.Content   = "Applied";
                applyBtn.IsEnabled = false;
            }
        }
Beispiel #3
0
        public void PopulateUO()
        {
            this.uwelcomeLabel.Content    += userRef.FirstName;
            this.unameLabel.Content       += userRef.UserName;
            this.uemailLabel.Content       = userRef.Email;
            this.uphoneLabel.Content       = userRef.PhoneNumber;
            this.ujobpositionLabel.Content = userRef.JobPosition;
            this.profileImage.Source       = userRef.Photo;

            Company emp = new Company();

            emp = ProfileInteractionsControl.getInstance().CompanyInfo(userRef.CompanyName);

            this.empnameLbl.Content += emp.Name;
            this.empaddLbl.Content   = emp.Address + " ," + emp.Country;
            this.empmailLbl.Content  = emp.Email;
            this.empsiteLbl.Content  = emp.Website;
            this.empphoneLbl.Content = emp.Phone;
        }
Beispiel #4
0
 private void applyBtn_Click(object sender, RoutedEventArgs e)
 {
     ProfileInteractionsControl.getInstance().addApplication(vacancy, userRef);
     applyBtn.Content   = "Applied";
     applyBtn.IsEnabled = false;
 }