private void UpdateSolutionInfo() { string repositoryDirectory = (string)RepositoryDirectoryTextBox.GetValue(TextBox.TextProperty); string solutionName = (string)SolutionNameTextBox.GetValue(TextBox.TextProperty); SolutionDirectoryTextBox.SetValue(TextBox.TextProperty, Path.Combine(repositoryDirectory, "src")); SolutionFilePathTextBox.SetValue(TextBox.TextProperty, Path.Combine(repositoryDirectory, "src", $"{solutionName}.sln")); }
private void OnDirectorySearchDialogClicked(object sender, RoutedEventArgs e) { using (FBD fbd = new FBD()) { fbd.ShowNewFolderButton = true; fbd.RootFolder = Environment.SpecialFolder.MyComputer; fbd.Description = "Select a repository directory for the solution."; if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { RepositoryDirectoryTextBox.SetValue(TextBox.TextProperty, fbd.SelectedPath); } } UpdateSolutionInfo(); }