public EmployeeInformationForm() { InitializeComponent(); IKernel kernel = BootStrapper.Initialize(); _employeeInformationService = kernel.GetService(typeof(EmployeeInformationService)) as EmployeeInformationService; _departmentService = kernel.GetService(typeof(DepartmentService)) as DepartmentService; _designationService = kernel.GetService(typeof(DesignationService)) as DesignationService; _employeeInformation = new EmployeeInformationModel(); }
public UserInformationForm() { InitializeComponent(); IKernel kernel = BootStrapper.Initialize(); _userInformationService = kernel.GetService(typeof(UserInformationService)) as UserInformationService; _userTypeService = kernel.GetService(typeof(UserTypeService)) as UserTypeService; _employeeInformationService = kernel.GetService(typeof(EmployeeInformationService)) as EmployeeInformationService; _roleService = kernel.GetService(typeof(RoleService)) as RoleService; _userInformation = new UserInformationModel(); }