Пример #1
0
 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;
 }
Пример #2
0
 public StaffAdd(StaffView mainView)
 {
     InitializeComponent();
     this.mainView = mainView;
 }