Beispiel #1
0
        public hFillBitmap(int PathIndex, wImage WindBitmap)
        {
            WindImage = WindBitmap;
            Index     = PathIndex;

            Width  = WindImage.BitmapImage.Width;
            Height = WindImage.BitmapImage.Height;

            SetBitmap();
        }
Beispiel #2
0
        public hFillBitmap(int PathIndex, wImage WindBitmap, double W, double H)
        {
            WindImage = WindBitmap;
            Index     = PathIndex;

            Width  = W;
            Height = H;

            SetBitmap();
        }
Beispiel #3
0
        public void OnAddButonClick(object sender, EventArgs arg)
        {
            IsSaved = false;
            var btn = sender as ToolStripButton;

            switch (btn.Name)
            {
            case "sbLabel":
                var lbl = new wLabel();
                lbl.Name       = "label";
                lbl.Text       = "test";
                lbl.ShowBorder = false;
                lbl.Location   = new Point(10, 50);
                canvas21.Controls.Add(lbl);
                break;

            case "sbBarcode":
                var barcode = new wBarcode();
                barcode.Name       = "Barcode";
                barcode.EncodeType = BarcodeLib.TYPE.CODE128;
                barcode.Location   = new Point(10, 50);
                barcode.Text       = "E123456";
                canvas21.Controls.Add(barcode);
                break;

            case "sbImage":
                var img = new wImage();
                img.Name     = "image";
                img.Location = new Point(10, 50);
                canvas21.Controls.Add(img);
                break;

            case "sbQRCoder":
                var qrcode = new wQRCoder();
                qrcode.Name     = "qrcode";
                qrcode.Text     = "hello";
                qrcode.Location = new Point(10, 50);
                canvas21.Controls.Add(qrcode);
                break;

            case "sbTable":
                var tb = new wTable();
                tb.Name = "table";
                //tb.Size=new Size(200,100);
                tb.Location = new Point(10, 10);
                canvas21.Controls.Add(tb);
                break;
            }
            canvas21.SelectControl = canvas21.Controls[canvas21.Controls.Count - 1];
            canvas21.Refresh();
        }