public BusinessProfile(Business b1, int offers) { InitializeComponent(); lblBusinessName.Text = b1.Name; lblBusinessCategory.Text = b1.BusinessCategory.Name; lblOffersShared.Text = offers.ToString(); lblBusinessType.Text = b1.BusinessType.Type; lblTechOffers.Text = JobOfferService.GetJobBsyCategoryAndBusinessName("Technology", b1.Name).ToString(); MessageBox.Show(LoggedData.LoggedJobSeeker.City + " " + b1.Name); lblCityOffersNum.Text = JobOfferService.GetOffersByCityAndBusinessName(b1.Name, LoggedData.LoggedJobSeeker.City).Count.ToString(); }
public ApplicationStatistic() { InitializeComponent(); lblMyOffersShared.Text = JobOfferService.GetOffersByBusinessName(LoggedData.LoggedBusiness.Name).Count.ToString(); lblTechnologyOffersJob.Text = JobOfferService.GetJobBsyCategoryAndBusinessName("Technology", LoggedData.LoggedBusiness.Name).ToString(); lblPristinaOffers.Text = JobOfferService.GetJobBsyCity("Prishtinë").ToString(); //// //Applications statistic lblApplicationsNum.Text = ApplicationService.GetApplicationByBusinessName(LoggedData.LoggedBusiness.Name).Count.ToString(); lblMaleApplications.Text = ApplicationService.GetApplicationsByMale().ToString(); lblRefusedApplications.Text = ApplicationService.ApplicationRefused(LoggedData.LoggedBusiness.Name).ToString(); //female find int femaleCount = ApplicationService.GetApplicationByBusinessName(LoggedData.LoggedBusiness.Name).Count - ApplicationService.GetApplicationsByMale(); lblFemalApplicants.Text = femaleCount.ToString(); }