private void viewPosition_Click(object sender, EventArgs e) { Person person = ReturnPerson(); string caption = person.Name + "'s Position"; PositionViewForm myForm = new PositionViewForm(person.Role, person.LengthOfRoleOccupancy, person.NumberOfSubordinates, caption, number); myForm.ShowDialog(); }
private void button1_Click_1(object sender, EventArgs e) { RoleLogic roleLogic = new RoleLogic(); string caption = person.Name + "'s Position"; PositionViewForm myForm = new PositionViewForm(roleLogic.GetRole(person.PositionRoleID), person.LengthOfRoleOccupancy, person.NumberOfSubordinates, caption, number); myForm.ShowDialog(); }