Exemple #1
0
 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;
 }
Exemple #2
0
 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;
		}
		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;
		}