Ejemplo n.º 1
0
 public UsersDetails(IEmployee employee, ILoadDataSender lastScreen) : this(employee as IUser, lastScreen)
 {
     InitializeComponent();
     Title.Text = "Employee properties";
     _employeeDetailsVM = new EmployeeDetailsUserControlVM(employee, lastScreen);
     _employeeDetailsUserControl = new EmployeeDetailsUserControl(employee, lastScreen, _userDetailsVM);
     EmployeesGrid.Children.Add(_employeeDetailsUserControl);
 }
 public EmployeeDetailsUserControl(IEmployee employee, ILoadDataSender lastScreen, UserDetailsVM userDetailsVM)
 {
     InitializeComponent();
     _lastScreen = lastScreen;
     _userDetailsVM = userDetailsVM;
     _currentUser = employee as UserVM;
     _employeeDetailsUserControlVM = new EmployeeDetailsUserControlVM(employee, lastScreen);
     DataContext = _employeeDetailsUserControlVM;
     LoadSkills();
 }