Exemplo n.º 1
0
        public void process()
        {
            north = vs.getImage();
            east  = vs.getImage();
            south = vs.getImage();
            west  = vs.getImage();

            holoDisplay      = new HologramDisplay1(this);
            holoDisplay.Size = new Size(size, size);

            int largeur = (holoDisplay.Width - 16);  // on enleve les bordures (2 * 8)
            int hauteur = (holoDisplay.Height - 39); // on eneleve la bordure en bas et la barre de titre (31 + 9)

            holoDisplay.pictureBox1.Height   = hauteur / 3;
            holoDisplay.pictureBox1.Width    = largeur / 3;
            holoDisplay.pictureBox1.Location = new Point(largeur / 3, 0);

            holoDisplay.pictureBox2.Height   = hauteur / 3;
            holoDisplay.pictureBox2.Width    = largeur / 3;
            holoDisplay.pictureBox2.Location = new Point(largeur * 2 / 3, hauteur / 3);

            holoDisplay.pictureBox3.Height   = hauteur / 3;
            holoDisplay.pictureBox3.Width    = largeur / 3;
            holoDisplay.pictureBox3.Location = new Point(largeur / 3, hauteur * 2 / 3);

            holoDisplay.pictureBox4.Height   = hauteur / 3;
            holoDisplay.pictureBox4.Width    = largeur / 3;
            holoDisplay.pictureBox4.Location = new Point(0, hauteur / 3);

            holoDisplay.ShowDialog();
        }
Exemplo n.º 2
0
        public void process()
        {
            north = vs.getImage();
            east = vs.getImage();
            south = vs.getImage();
            west = vs.getImage();

            holoDisplay = new HologramDisplay1(this);
            holoDisplay.Size = new Size(size, size);

            int largeur = (holoDisplay.Width - 16); // on enleve les bordures (2 * 8)
            int hauteur = (holoDisplay.Height - 39); // on eneleve la bordure en bas et la barre de titre (31 + 9)

            holoDisplay.pictureBox1.Height = hauteur / 3;
            holoDisplay.pictureBox1.Width = largeur / 3;
            holoDisplay.pictureBox1.Location = new Point(largeur / 3, 0);

            holoDisplay.pictureBox2.Height = hauteur / 3;
            holoDisplay.pictureBox2.Width = largeur / 3;
            holoDisplay.pictureBox2.Location = new Point(largeur * 2 / 3, hauteur / 3);

            holoDisplay.pictureBox3.Height = hauteur / 3;
            holoDisplay.pictureBox3.Width = largeur / 3;
            holoDisplay.pictureBox3.Location = new Point(largeur / 3, hauteur * 2 / 3);

            holoDisplay.pictureBox4.Height = hauteur / 3;
            holoDisplay.pictureBox4.Width = largeur / 3;
            holoDisplay.pictureBox4.Location = new Point(0, hauteur / 3);

            holoDisplay.ShowDialog();
        }