Exemplo n.º 1
0
 public BuildDefinitionExplorerRoot(string path, ITFS tfs)
     : base(path)
 {
     TFS  = tfs;
     Name = path;
     InitAsFolder();
 }
Exemplo n.º 2
0
 public Options(BaseUIHierarchy hierarchy, ITFS tfs)
 {
     Hierarchy = hierarchy;
     TFS       = tfs;
     settings  = null;
     Reg       = new RegistryCurrentUser(@"Software\Inmeta\BuildExplorer");
 }
Exemplo n.º 3
0
        public BuildDefinitionExplorerNode(IBuildDefinitionTreeNode node, char separator, ITFS tfs)
            : base(node.Path, node.Name)
        {
            TFS  = tfs;
            Node = node;
            if (_hiconLeaf == IntPtr.Zero && _hiconOpenFolder == IntPtr.Zero)
            {
                _hiconLeafAllBuildDef = ((Bitmap)BuildExplorerPlugin.Icons.Images[0]).GetHicon();
                _hiconLeaf            = ((Bitmap)BuildExplorerPlugin.Icons.Images[2]).GetHicon();
                _hiconOpenFolder      = ((Bitmap)BuildExplorerPlugin.Icons.Images[4]).GetHicon();
                _hiconCloseFolder     = ((Bitmap)BuildExplorerPlugin.Icons.Images[3]).GetHicon();
            }

            this.separator = separator;
            if (node.Children.Count == 0 /*&& node.Name!="All Build Definitions"*/)
            {
                InitAsLeaf();
            }
            else
            {
                InitAsFolder();
            }
            IsAllBuildDefinitionsNode = node.Name == "All Build Definitions";
            if (IsAllBuildDefinitionsNode)
            {
                NodePriority = AllBuildDefinitionsNodePriority;
            }
            IsDisabled = node.IsDisabled;
        }
Exemplo n.º 4
0
 public AuthTfsTeamProjectCollection(ITFS tfs)
 {
     TFS = tfs;
     if (Tfs == null || Tfs.Name != tfs.Context.DomainName)
     {
         Tfs =
             TfsTeamProjectCollectionFactory.GetTeamProjectCollection(
                 TfsTeamProjectCollection.GetFullyQualifiedUriForName(TFS.Context.DomainUri));
     }
 }
Exemplo n.º 5
0
        public BuildDefinitionUIHierarchy(IVsUIHierarchy parentHierarchy, uint itemId, BasicAsyncPlugin plugin, ITFS tfs)
            : base(parentHierarchy, itemId, plugin, InmetaVisualStudioTeamExplorerPackage.Instance)
        {
            TFS       = tfs;
            _instance = this;
            IVsMonitorSelection monitorSelectionService = (IVsMonitorSelection)BasicHelper.GetService <SVsShellMonitorSelection>();

            monitorSelectionService.AdviseSelectionEvents(this, out _monitorSelectionCockie);
            var options = new Options(this, TFS);

            timer          = new Timer(options.TimerDelayBeforeRefresh);
            timer.Elapsed += OnTimer;
            timer.Enabled  = options.UseTimedRefreshAtStartup;
            string name;

            parentHierarchy.GetCanonicalName(itemId, out name);
        }
Exemplo n.º 6
0
 public BuildDefinitionExplorerNode(IBuildDefinitionTreeNode node, char separator, bool isFolderNode, ITFS tfs)
     : this(node, separator, tfs)
 {
     this.isFolderNode = isFolderNode;
 }
Exemplo n.º 7
0
 private void ConnectToTFS()
 {
     try
     {
         TFS = new TFS2010(txtTFSServerURL.Text, txtDomain.Text,
                           txtTFSUsername.Text, txtTFSPassword.Text);
     }
     catch (Exception exception)
     {
         LogError(exception);
     }
 }
Exemplo n.º 8
0
 public static void Initialize(TestContext testContext)
 {
     tfsserver = new PivotalTFSSync.TFS(URL, Domain, Username, Password);
     Assert.IsNotNull(tfsserver);
 }
Exemplo n.º 9
0
 public OptionsForm(BaseUIHierarchy hierarchy, ITFS tfs)
 {
     InitializeComponent();
     options = new Options(hierarchy, tfs);
 }