Esempio n. 1
0
        public static Button getButton(int buttonX, int buttonY, int buttonScaleX, int buttonScaleY, bool LorR)
        {
            float  drX      = buttonScaleX / (LorR ? buttonScaleX : 4);
            float  drY      = buttonScaleY / 4;
            float  drscaleX = buttonScaleY / 9;
            float  drscaleY = buttonScaleY / 4;
            Button control  = new Button();

            control.Width    = buttonScaleX;
            control.Height   = buttonScaleY;
            control.Location = new Point(buttonX, buttonY);
            Pen           workPen = new Pen(Color.Black, 2f);
            GraphicShapes icon    = new GraphicShapes(control, workPen);

            icon.drawForNum(LorR?13:0, drX, drY, drscaleX, drscaleY);
            return(control);
        }
Esempio n. 2
0
        public CheckBox getCheckBox(int tx, int ty, int tScaleX, int tScaleY)
        {
            barSec.Width      = tScaleX;
            barSec.Height     = tScaleY;
            barSec.FlatStyle  = FlatStyle.Popup;
            barSec.Appearance = Appearance.Button;
            barSec.TextAlign  = ContentAlignment.BottomCenter;
            barSec.Location   = new Point(tx, ty);
            Pen           workPen = new Pen(Color.Black, 2f);
            GraphicShapes icon    = new GraphicShapes(barSec, workPen);

            icon.drawForNum(imageIndex, X, Y, scaleX, scaleY);
            //           barSec.BackColor = Color.FromArgb(207, 169, 97);
            barSec.BackColor = Color.FromName("DarkGray");
            //      barSec.BackColor = Color.FromName("DimGray");
            return(barSec);
        }