Example #1
0
        private void SetMiddlePictureTwo()
        {
            PictureBox pb1 = GeneratePictureBox();
            PictureBox pb2 = GeneratePictureBox();

            pb1.Location = new Point(pb1.Location.X, 10);
            pb2.Location = new Point(pb2.Location.X, 105);
            pb1.Location = SolitaireUtil.HorizontalCenter(pb1, panelMiddle);
            pb2.Location = SolitaireUtil.HorizontalCenter(pb2, panelMiddle);
            pb1.Image    = CardImage;
            pb2.Image    = CardImageRotate;
            panelMiddle.Controls.Add(pb1);
            panelMiddle.Controls.Add(pb2);
            pictureBoxMiddle.SendToBack();
        }
Example #2
0
        private void SetMiddlePictureTen()
        {
            PictureBox pb1 = GeneratePictureBox();
            PictureBox pb2 = GeneratePictureBox();

            pb1.Location = pb2.Location = SolitaireUtil.HorizontalCenter(pb1, panelMiddle);
            pb1.Location = new Point(pb1.Location.X, (100 - 28 - 28 - 15) / 2 + 15);
            pb2.Location = new Point(pb1.Location.X, (100 + ((100 - 28) / 2)) / 2 + 15);
            pb1.Image    = CardImage;
            pb2.Image    = CardImageRotate;
            pb1.BringToFront();
            pb2.BringToFront();
            panelMiddle.Controls.Add(pb1);
            panelMiddle.Controls.Add(pb2);
            SetMiddlePictureNine(true);
            pictureBoxMiddle.SendToBack();
        }