示例#1
0
        private void UpdateOne(SchemeItem2 n, int startpos)
        {
            if (startpos >= totalNum)
            {
                n.Visible = false;
                return;
            }
            n.Visible = true;

            PackerConfig pcfg = new PackerConfig();

            pcfg.FromElement(curr_packer.pkg_confs[idlist[startpos]]);

            n.Product = imglist[startpos];
            n.Text    = String.Format("{0}:{1}\r\n{2}:{3}\r\n{4}:{5}\r\n{6}:{7}\r\n{8}:{9}",
                                      StringResource.str("product_no"), pcfg.product_no,
                                      StringResource.str("product_desc"), pcfg.product_desc,
                                      StringResource.str("grp_target"), pcfg.target,
                                      StringResource.str("grp_uvar"), pcfg.upper_var,
                                      StringResource.str("grp_dvar"), pcfg.lower_var
                                      );
            n.Id = idlist[startpos];
        }
示例#2
0
        private void UpdateOne(SchemeItem2 n,int startpos)
        {
            if (startpos >= totalNum)
            {
                n.Visible = false;
                return;
            }
            n.Visible = true ;
            
                PackerConfig pcfg = new PackerConfig();
                pcfg.FromElement(curr_packer.pkg_confs[idlist[startpos]]);

                n.Product = imglist[startpos];
                n.Text = String.Format("{0}:{1}\r\n{2}:{3}\r\n{4}:{5}\r\n{6}:{7}\r\n{8}:{9}",
                    StringResource.str("product_no"), pcfg.product_no,
                    StringResource.str("product_desc"), pcfg.product_desc,
                    StringResource.str("grp_target"), pcfg.target,
                    StringResource.str("grp_uvar"), pcfg.upper_var,
                    StringResource.str("grp_dvar"), pcfg.lower_var
                );
                n.Id = idlist[startpos];

        }