コード例 #1
0
        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);
        }
コード例 #2
0
 public void AddCompany(CompanyEmpWage company)
 {
     company.setDailyWage(this.ComputeDailyWage(company));
     company.setWagesPerMonth(this.ComputeMonthlyWage(company));
     companiesDictionary.Add(company.companyName, company);
 }