private void OnSetCurrentUserCommand() { var setCurrentUserWindow = new SetCurrentUserWindow { Owner = Application.Current.MainWindow }; setCurrentUserWindow.Show(); }
private void OnOpenSelectFolderDialog() { try { var projectPath = GetProjectPath(); while (!_repositoryService.RepositoryExists(projectPath)) { MessageBox.Show(ResourceManager.GetString("RepositoryNotFoundExplanation"), ResourceManager.GetString("RepositoryNotFound"), MessageBoxButtons.OK, MessageBoxIcon.Error); projectPath = GetProjectPath(); } _projectPathsService.BaseProjectPath = projectPath; var setCurrentUserWindow = new SetCurrentUserWindow { Owner = Application.Current.MainWindow }; setCurrentUserWindow.ShowDialog(); } catch (OperationCanceledException) { } }