Exemple #1
0
 public void initAllForm()
 {
     _employeeRegistrationView = new EmployeeRegistrationView(_currentUser, _previousForm);
     _userAdd      = new UserAdd(_currentUser, _previousForm);
     _rank         = new Rank(_currentUser, _previousForm);
     _branch       = new BranchCreateView(_currentUser, _previousForm);
     _dept         = new DepartmentCreateView(_currentUser, _previousForm);
     _updateBranch = new BranchUpdateView(_currentUser, _previousForm);
 }
Exemple #2
0
 private void EmployeeAddMS_Click(object sender, EventArgs e)
 {
     hideotherforms();
     showHideUserInfo(false);
     _employeeRegistrationView = new EmployeeRegistrationView(_currentUser, _previousForm);
     // Set the Parent Form of the Child window.
     _employeeRegistrationView.MdiParent = this;
     // Display the new form.
     _employeeRegistrationView.Show();
     _employeeRegistrationView.FormClosed += showBasicUserInfo;
 }