Beispiel #1
0
 public async void OnWageChanged(Wage oldWage, Wage newWage)
 {
     WageChanged?.Invoke(this, new WageEventArgs()
     {
         OldWage = oldWage, NewWage = newWage
     });
 }
Beispiel #2
0
        public static Employee CreateEmployee(int id, string name, string surname, int age, int postcode, string position, decimal baseWage)
        {
            Employee Employee = new Employee(id, name, surname, age, postcode, position);

            Employee.Wage = new Wage(baseWage);

            return(Employee);
        }