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); }
public static UC_Employee GetUserControl(EmployeeModel employeeModel) { UC_Employee uc = new UC_Employee(); uc.model = employeeModel; return uc; }