示例#1
0
 protected override void ChangeViewMethod(object parameter)
 {
     if (parameter.ToString() == "EmployeeData")
     {
         SelectedViewModel = new ManageEmployeeDataViewModel(CurrentEmployee);
     }
     else if (parameter.ToString() == "Violation")
     {
         SelectedViewModel = new ManageViolationViewModel();
     }
     else if (parameter.ToString() == "ViolationRequest")
     {
         SelectedViewModel = new CreateViolationReportViewModel();
     }
     else if (parameter.ToString() == "SalaryRaise")
     {
         SelectedViewModel = new ManageSalaryRequestViewModel();
     }
     else if (parameter.ToString() == "LeavingPermit")
     {
         SelectedViewModel = new ManageLeavingPermitViewModel();
     }
 }
示例#2
0
 public HRMViewModel(Employee _employee)
 {
     Name              = "HRM Team";
     CurrentEmployee   = _employee;
     SelectedViewModel = new ManageEmployeeDataViewModel(CurrentEmployee);
 }