/// <summary>
        /// 图片布局
        /// </summary>
        private void generatePictureLayout()
        {
            this.panel1.Controls.Clear();
            height = 0;
            width  = 0;
            int       i  = 0;
            DataTable dt = StyleService.initStyle(this.textBox1.Text, Frm标准款下单.page);

            if (dt.Rows.Count == 0)
            {
                MessageBox.Show("已经是最后一页");
                Frm标准款下单.page--;
                dt = StyleService.initStyle(this.textBox1.Text, Frm标准款下单.page);
            }
            panelLocition = new PanelLocition(this.panel1.Width, this.panel1.Height, dt.Rows.Count);
            foreach (DataRow dr in dt.Rows)
            {
                UC款式卡片 sc = new UC款式卡片("标准款下单具体", dr);
                this.generateUserControl(sc, i);
                this.panel1.Controls.Add(sc);//将控件加入panel
                try
                {
                    sc.stylecardpicbox.Image = Image.FromFile(sc.picture);
                }
                catch
                {
                }
                i++;
            }
            this.fenYeLan1.label1.Text = Frm标准款下单.page.ToString();
            this.splashScreenManager.CloseWaitForm();
        }
 public Frm标准款下单具体(UC款式卡片 styleCard)
 {
     ImpService.ClearStaticVariable();
     this.WindowState = FormWindowState.Maximized;//窗体最大化
     this.styleCard   = styleCard;
     InitializeComponent();
     this.label8.Text      = styleCard.stylecardlabel.Text;
     Frm定制下单修改尺寸.kuanshiid = styleCard.kuanshiid;
     try
     {
         this.pictureBox1.Image = Image.FromFile(styleCard.picture);
     }
     catch
     {
     }
 }