Example #1
0
        private void LoadModules(RadPageViewPage page)
        {
            var productName = page.Title;
            var product     = Presenter.GetProductByName(productName);
            var modules     = product.GetAllModules();


            FlowLayoutPanel panel = flowLayoutPanel2; //get flow control from page


            foreach (var module in modules)
            {
                ModuleInfo infoModule = new ModuleInfo();
                var        result     = module.Calculate();
                infoModule.BindData(result.ModuleName, result.ImagePath, result.DimensionInfo, result.DetailsInfo, result.ShelfInfo, result.FurnitureInfo, result.LoopsInfo);
                infoModule.Width = flowLayoutPanel2.Width - 3;
                panel.Controls.Add(infoModule);
            }
        }