Exemplo n.º 1
0
        public ReferenceData(Step5ProgrammFolder Parent, Project Project)
        {
            this.Parent = Parent;
            this.Project = Project;

            Name = "ReferenzDaten";

            //Load Referencedata in a Background Thread.
            Thread trd = new Thread(new ThreadStart(LoadReferenceData));
            trd.Start();
        }
        void loadPrj()
        {
            if (fnm != "")
            {
                treeStep7Project.Nodes.Clear();

                tmpPrj = Projects.LoadProject(fnm, chkShowDeleted.Checked);
                //tmpPrj = new Step7ProjectV5(fnm, chkShowDeleted.Checked);

                //listBox1.Items.AddRange(tmp.PrgProjectFolders.ToArray());
                lblProjectName.Text = tmpPrj.ProjectName;
                lblProjectInfo.Text = tmpPrj.ProjectDescription;

                myTreeNode trnd = new myTreeNode();
                trnd.myObject = tmpPrj.ProjectStructure;
                trnd.Text = tmpPrj.ProjectStructure.Name;
                trnd.ImageIndex = 0;
                AddNodes(trnd, tmpPrj.ProjectStructure.SubItems);
                treeStep7Project.Nodes.Add(trnd);
            }
        }
        void loadPrj()
        {
            if (fnm != "")
            {               
                treeStep7Project.Nodes.Clear();

                tmpPrj = Projects.LoadProject(fnm.Split('|')[0], chkShowDeleted.Checked);
                
                lblProjectName.Text = tmpPrj.ProjectName;
                lblProjectInfo.Text = tmpPrj.ProjectDescription;

                myTreeNode trnd = new myTreeNode();
                trnd.myObject = tmpPrj.ProjectStructure;
                trnd.Text = tmpPrj.ProjectStructure.Name;
                trnd.ImageIndex = 0;
                AddNodes(trnd, tmpPrj.ProjectStructure.SubItems);
                treeStep7Project.Nodes.Add(trnd);
            }
        }