protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     UserControlHelper.IncludeAdminStylesheet(this.Page);
     _structuredFundList = new StructuredFundList();
     addControl(createFundCollectionControl(_structuredFundList));
 }
        private Table createFundCollectionControl(StructuredFundList fundMasterList)
        {
            var t = new Table();

            t.CssClass = "fundTaxonomyTable";

            foreach (FundCollection eachFundCollection in fundMasterList.Funds)
            {
                var tRow = new TableRow();

                TableCell tCell = new TableCell();
                tCell.Width = 280;
                tCell.Controls.Add(newMasterFundCheckbox(eachFundCollection));
                tRow.Cells.Add(tCell);

                tCell = new TableCell();
                foreach (Fund eachFundClass in eachFundCollection.Funds)
                {
                    tCell.Controls.Add(newFundClassCheckbox(eachFundCollection, eachFundClass));
                }
                tRow.Cells.Add(tCell);
                t.Rows.Add(tRow);
            }

            return(t);
        }
示例#3
0
        public void TestMethod1()
        {
            var x = new StructuredFundList();

            foreach (FundCollection eachCollection in x.Funds)
            {
                Console.WriteLine(eachCollection.Name);
                foreach (Fund eachFund in eachCollection.Funds)
                {
                    Console.WriteLine("   " + eachFund.FundName);
                }
            }
            var i = 2;
        }