Example #1
0
 private void LoadEmployee()
 {
     this.UCEmployee = UC_Employee.GetUserControl(this.controller.CurrentEmployee);
     this.UCEmployee.Size = this.layoutControlEmployeeInfo.Size;
     this.layoutControlEmployeeInfo.Controls.Clear();
     this.layoutControlEmployeeInfo.Controls.Add(this.UCEmployee);
 }
Example #2
0
 public static UC_Employee GetUserControl(EmployeeModel employeeModel)
 {
     UC_Employee uc = new UC_Employee();
     uc.model = employeeModel;
     return uc;
 }