public void EndEdit() { this.backupEmplData.salary = Salary; this.backupEmplData.startingDate = StartingDate; this.backupEmplData.firstName = FirstName; this.backupEmplData.lastName = LastName; this.backupEmplData.occupation = Occupation; this.backupEmplData.phoneNum = PhoneNumber; }
public dataPerson(DateTime startingDate, string fName, string lName, OccupationPositions occ, string phoneNum, int sal) { this.backupEmplData = new EmployeeData(); this.backupEmplData.startingDate = startingDate; this.StartingDate = startingDate; this.backupEmplData.salary = sal; this.Salary = sal; this.backupEmplData.firstName = fName; this.FirstName = fName; this.backupEmplData.lastName = lName; this.LastName = lName; this.backupEmplData.occupation = occ; this.Occupation = occ; this.backupEmplData.phoneNum = phoneNum; this.PhoneNumber = phoneNum; this.StartingDate = startingDate; }
public Person(DateTime startingDate, string fName, string lName, OccupationPositions occ, string phoneNum, int sal) { this.backupEmplData = new EmployeeData(); this.backupEmplData.startingDate = startingDate; this.StartingDate = startingDate; this.backupEmplData.salary = sal; this.Salary = sal; this.backupEmplData.firstName = fName; this.FirstName = fName; this.backupEmplData.lastName = lName; this.LastName = lName; this.backupEmplData.occupation = occ; this.Occupation = occ; this.backupEmplData.phoneNum = phoneNum; this.PhoneNumber = phoneNum; this.StartingDate = startingDate; }