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();
 }
        public UsersDetails(IUser user, ILoadDataSender lastScreen)
        {
            InitializeComponent();
            var u = user as UserVM;
            if (u.Login == null)
            {
                u.Birthday = DateTime.Now;
                u.Password = Guid.NewGuid().ToString();
                u.Role = PMDataLayer.User.Roles.Client;
            }

            _user = user;
            _userDetailsVM = new UserDetailsVM(user as UserVM, lastScreen);
            DataContext = _userDetailsVM;
        }