public void AddCompany(string companyName, int wagePerHour, int maxWorkingDays, int maxWorkingHours) { CompanyEmpWage company = new CompanyEmpWage(companyName, wagePerHour, maxWorkingDays, maxWorkingHours); company.setDailyWage(this.ComputeDailyWage(company)); company.setWagesPerMonth(this.ComputeMonthlyWage(company)); companiesDictionary.Add(companyName, company); }
public void AddCompany(CompanyEmpWage company) { company.setDailyWage(this.ComputeDailyWage(company)); company.setWagesPerMonth(this.ComputeMonthlyWage(company)); companiesDictionary.Add(company.companyName, company); }