public StaffPopup(Staff employee, StaffView mainview) { InitializeComponent(); this.employee = employee; labelEName.Text += employee.Name; labelEId.Text += employee.Id; labelERole.Text += employee.Role; if (employee.Role == "owner") { ontslagBtn.Enabled = false; } mainView = mainview; }
public StaffAdd(StaffView mainView) { InitializeComponent(); this.mainView = mainView; }