예제 #1
0
        public void Init()
        {
            tfsHelperFunctions =
                new TfsHelperFunctions("https://tfstoolset.visualstudio.com", "MyFirstProject");

            testFoldersToDelete = new List <QueryFolder>();
        }
예제 #2
0
        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");
                }
            }
        }