Ejemplo n.º 1
0
        private void BtnUpdateTFS_Click(object sender, EventArgs e)
        {
            var sc = GlobalContext.SourceControl;

            ReLoadSolutions();
            m_parentControl.ReloadTFSFiles();

            var baseSolNode = FindBaseSolNode(OrgName);

            if (baseSolNode != null)
            {
                foreach (CrmTreeNode <CrmSolution> n in baseSolNode.Nodes)
                {
                    var sol  = (CrmSolution)n.Component;
                    var node = TreeViewHelper.SearchTree(TvTfs.Nodes, sol.UniqueName, EnumTypes.RecursionType.Full, EnumTypes.SearchPaternType.Contains);
                    if (node == null)
                    {
                        var res = SolutionHelper.DownloadSolutionFile(CrmOrg, sol.UniqueName);

                        if (res != null)
                        {
                            sc.AddProjectPatch(OrgName, res[0], res[1]);
                        }
                    }
                }
            }
            else
            {
                MessageBox.Show("Organization Base Project solution not found");
            }
        }