コード例 #1
0
ファイル: MainForm.cs プロジェクト: hydrohead/MWSZonBarcode
        private void button2_Click(object sender, EventArgs e)
        {
            if(listBox1.SelectedIndex >= 0)
            {

                int copies = 100;
                int.TryParse(this.Copies.Text, out copies);

                var label = (FNSkuLabel)listBox1.Items[listBox1.SelectedIndex];
                Pdf pdf = new Pdf();
                Double width = 3.0;
                Double height = 1.0;

                string[] sizeArr = sizeChosen.Text.Split('x');
                Double.TryParse(sizeArr[0], out height);
                Double.TryParse(sizeArr[1], out width);

                pdf.create(label, this.Condition.Text, copies, width, height);

                //var label = (FNSkuLabel)listBox1.Items[listBox1.SelectedIndex];

                //Pdf pdf = new Pdf();
                //pdf.create(pictureBox1.Image, label.Title, 3.0, 1.0);

            }
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex >= 0)
            {
                int copies = 100;
                int.TryParse(this.Copies.Text, out copies);

                var    label  = (FNSkuLabel)listBox1.Items[listBox1.SelectedIndex];
                Pdf    pdf    = new Pdf();
                Double width  = 3.0;
                Double height = 1.0;

                string[] sizeArr = sizeChosen.Text.Split('x');
                Double.TryParse(sizeArr[0], out height);
                Double.TryParse(sizeArr[1], out width);

                pdf.create(label, this.Condition.Text, copies, width, height);

                //var label = (FNSkuLabel)listBox1.Items[listBox1.SelectedIndex];

                //Pdf pdf = new Pdf();
                //pdf.create(pictureBox1.Image, label.Title, 3.0, 1.0);
            }
        }