public void Init() { tfsHelperFunctions = new TfsHelperFunctions("https://tfstoolset.visualstudio.com", "MyFirstProject"); testFoldersToDelete = new List <QueryFolder>(); }
private void ConnectButton_Click(object sender, RoutedEventArgs e) { try { //construct class with user input URL and project name tfsHelperFunctions = new TfsHelperFunctions(TFSURLTextBox.Text, ProjectNameTextBox.Text); //success message string fullPath = TFSURLTextBox.Text + ProjectNameTextBox.Text; this.ShowMessageAsync("Success", "Connected to " + fullPath); ConnectButton.Visibility = Visibility.Hidden; } catch (Exception ex) { if (ex is UriFormatException) { this.ShowMessageAsync("Error", "Please enter a valid TFS URL/Project combination"); } } }