public async void OnWageChanged(Wage oldWage, Wage newWage) { WageChanged?.Invoke(this, new WageEventArgs() { OldWage = oldWage, NewWage = newWage }); }
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); }