//public
        public ScreenControl(int PosX, int PosY)
        {
            this.BackColor = System.Drawing.Color.Navy;
            this.Location  = new System.Drawing.Point(PosX, PosY);
            this.Name      = "panelVirtual";
            this.Size      = new System.Drawing.Size(640, 480);
            this.Visible   = true;
            this.Paint    += new System.Windows.Forms.PaintEventHandler(this.DrawScreenControl);

            ScreenKey SK_Control = new ScreenKey();

            // init Box
            Point P1 = new Point(0, 0);
            Point P2 = new Point(20, 30);

            for (int i = 0; i < 16; i++)
            {
                for (int j = 0; j < 32; j++)
                {
                    ScreenBox[j, i] = new BoxScreenControl(P1, P2);
                    P1.X           += 20;
                    P2.X           += 20;
                }
                P1.X  = 0;
                P2.X  = 20;
                P1.Y += 30;
                P2.Y += 30;
            }
        }
Exemplo n.º 2
0
        //public
        public ScreenControl(int PosX, int PosY)
        {
            this.BackColor = System.Drawing.Color.Navy;
            this.Location = new System.Drawing.Point(PosX, PosY);
            this.Name = "panelVirtual";
            this.Size = new System.Drawing.Size(640, 480);
            this.Visible = true;
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawScreenControl);

            ScreenKey SK_Control = new ScreenKey();

            // init Box
            Point P1 = new Point(0, 0);
            Point P2 = new Point(20, 30);
            for (int i = 0; i < 16; i++)
            {
                for (int j = 0; j < 32; j++)
                {
                    ScreenBox[j, i] = new BoxScreenControl(P1, P2);
                    P1.X += 20;
                    P2.X += 20;
                }
                P1.X = 0;
                P2.X = 20;
                P1.Y += 30;
                P2.Y += 30;
            }
        }