public BuildDefinitionExplorerRoot(string path, ITFS tfs) : base(path) { TFS = tfs; Name = path; InitAsFolder(); }
public Options(BaseUIHierarchy hierarchy, ITFS tfs) { Hierarchy = hierarchy; TFS = tfs; settings = null; Reg = new RegistryCurrentUser(@"Software\Inmeta\BuildExplorer"); }
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; }
public AuthTfsTeamProjectCollection(ITFS tfs) { TFS = tfs; if (Tfs == null || Tfs.Name != tfs.Context.DomainName) { Tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection( TfsTeamProjectCollection.GetFullyQualifiedUriForName(TFS.Context.DomainUri)); } }
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); }
public BuildDefinitionExplorerNode(IBuildDefinitionTreeNode node, char separator, bool isFolderNode, ITFS tfs) : this(node, separator, tfs) { this.isFolderNode = isFolderNode; }
private void ConnectToTFS() { try { TFS = new TFS2010(txtTFSServerURL.Text, txtDomain.Text, txtTFSUsername.Text, txtTFSPassword.Text); } catch (Exception exception) { LogError(exception); } }
public static void Initialize(TestContext testContext) { tfsserver = new PivotalTFSSync.TFS(URL, Domain, Username, Password); Assert.IsNotNull(tfsserver); }
public OptionsForm(BaseUIHierarchy hierarchy, ITFS tfs) { InitializeComponent(); options = new Options(hierarchy, tfs); }