Exemplo n.º 1
0
 private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (tabControl1.SelectedIndex == 1)
     {
         listBox1.Items.Clear();
         List <ProjectDependencies> orders = SolutionNode.GetBuildOrder(this.ProjectDependencies);
         for (int i = 0; i < orders.Count; i++)
         {
             listBox1.Items.Add(orders[i]);
         }
     }
 }
        public ProjectNode[] GetProjectBuilderOrder()
        {
            List <ProjectDependencies> projects = GetDependencies();
            List <ProjectDependencies> orders   = SolutionNode.GetBuildOrder(projects);

            ProjectNode[] pnodes = new ProjectNode[orders.Count];
            for (int i = 0; i < orders.Count; i++)
            {
                pnodes[i] = GetProjectByGuid(orders[i].Project.ProjectGuid);
            }
            return(pnodes);
        }