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);
        }
Ejemplo n.º 2
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]);
         }
     }
 }
Ejemplo n.º 3
0
 public void LoadData(SolutionNode sn)
 {
     comboBox1.Items.Clear();
     ProjectDependencies = sn.GetDependencies();
     foreach (ProjectDependencies pds in ProjectDependencies)
     {
         comboBox1.Items.Add(pds);
     }
     if (comboBox1.Items.Count > 0)
     {
         comboBox1.SelectedIndex = 0;
     }
 }
Ejemplo n.º 4
0
 public void LoadData(SolutionNode node)
 {
     _sol = node;
     for (int i = 0; i < node.Nodes.Count; i++)
     {
         ProjectNode pn = node.Nodes[i] as ProjectNode;
         if (pn != null)
         {
             ProjectNodeData pnd = pn.PropertyObject as ProjectNodeData;
             int             n   = checkedListBox1.Items.Add(pnd.Project);
             if (node.IsProjectBuildIncluded(pn))
             {
                 checkedListBox1.SetItemChecked(n, true);
             }
         }
     }
 }