void OpenEmployeePage(int employeeId, object sender) { Form popup = new StaffPopup(staffList.Find(x => x.Id == employeeId), this); popup.StartPosition = FormStartPosition.Manual; Point newLocation = (sender as Label).Location; newLocation.Offset(500, 50); popup.Location = newLocation; popup.ShowDialog(); }
public ExtraConfirmationPopup(Staff employee, StaffPopup opener) { InitializeComponent(); employeeToFire = employee; this.opener = opener; }