Exemplo n.º 1
0
        public void MakeSGList(IEnumerable <SampleGroup> sampleGroups, Panel container)
        {
            foreach (var sg in sampleGroups.Reverse())
            {
                var sgRow = new SampleGroupRow()
                {
                    Text = "SG: " + sg.Code,
                    Dock = DockStyle.Top
                };
                sgRow.SpeciesClicked += new SampleGroupRow.SpeciesClickedEventHandler(sgRow_SpeciesClicked);

                sg.TreeDefaultValues.Populate();
                var subPops = (from TreeDefaultValueDO tdv in sg.TreeDefaultValues
                               select new SubPop(sg, tdv));

                sgRow.AddSupPops(subPops);

                container.Controls.Add(sgRow);
            }
        }
        public void MakeSGList(IEnumerable<SampleGroupModel> sampleGroups, Panel container)
        {
            foreach (var sg in sampleGroups.Reverse())
            {
                var sgRow = new SampleGroupRow()
                {
                    Text = "SG: " + sg.Code,
                    Dock = DockStyle.Top
                };
                sgRow.SpeciesClicked += new SampleGroupRow.SpeciesClickedEventHandler(sgRow_SpeciesClicked);

                sg.TreeDefaultValues.Populate();
                var subPops = (from TreeDefaultValueDO tdv in sg.TreeDefaultValues
                               select new SubPop(sg, tdv));

                sgRow.AddSupPops(subPops);

                container.Controls.Add(sgRow);
            }
        }