private void CurrentUserViewModelOnCurrentUserSet(ProjectMember currentUser) { CurrentProject = new RegistryProjectInformation { ProjectPath = CurrentProject.ProjectPath, CurrentUser = currentUser }; }
private void ProjectPathsServiceOnProjectPathChanged() { CurrentProject = new RegistryProjectInformation { ProjectPath = _projectPathsService.BaseProjectPath, CurrentUser = null }; }
private void ScanRegistry() { var projectPath = (string)_baseRegistryKey.GetValue("CurrentProjectPath", null); var userName = (string)_baseRegistryKey.GetValue("CurrentProjectUserName", null); var userEmail = (string)_baseRegistryKey.GetValue("CurrentProjectUserEmail", null); if (projectPath == null || userName == null || userEmail == null) { return; } CurrentProject = new RegistryProjectInformation { CurrentUser = new ProjectMember(userName, userEmail), ProjectPath = projectPath }; }