/// <summary> /// Executes the show salary command /// </summary> private void ShowSalaryExecute() { try { SalaryPreview salaryP = new SalaryPreview(service.GetEmployeeUserID(LoggedUser.CurrentUser.UserID)); salaryP.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
/// <summary> /// Constructor with EnterSalaryValue window param /// </summary> /// <param name="salaryOpen">opens the salary window</param> /// <param name="employeeEdit">gets the employee info that is being edited</param> public AllUsersViewModel(SalaryPreview salaryOpen, vwEmployee employeeEdit) { employee = employeeEdit; salaryPreviwWindow = salaryOpen; CurrentSalaryValue = employeeEdit.Salary; }