コード例 #1
0
ファイル: Program.cs プロジェクト: cy2296/coding
        public void _calcOT(string Name, EmployeeType empType, double HoursWorked, double ExpectedOT)
        {
            Employee emp = new Employee(Name, empType, HoursWorked);
            TheRuleList trl = new TheRuleList(emp);
            trl.Invoke();

            Console.WriteLine("Name: {0}\tEmployeeType: {1}\tHoursWorked: {2}\tOverTime: {3}\tExpected OverTime: {4}"
            , Name, empType.ToString(), HoursWorked.ToString(), emp.OverTimeHours.ToString(), ExpectedOT.ToString());
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: None-later/coding
        public void _calcOT(string Name, EmployeeType empType, double HoursWorked, double ExpectedOT)
        {
            Employee    emp = new Employee(Name, empType, HoursWorked);
            TheRuleList trl = new TheRuleList(emp);

            trl.Invoke();

            Console.WriteLine("Name: {0}\tEmployeeType: {1}\tHoursWorked: {2}\tOverTime: {3}\tExpected OverTime: {4}"
                              , Name, empType.ToString(), HoursWorked.ToString(), emp.OverTimeHours.ToString(), ExpectedOT.ToString());
        }