예제 #1
0
        private void btnDominoKnockDownZ_Click(object sender, EventArgs e)
        {
            Dominoes dominoes = new Dominoes(10, 60, 120, 16, 60);

            this.dominoRotationAngle = 90;

            dominoes.PositionChanged += new Dominoes.PositionChangedEventHandler(dominoes_PositionChanged);

            dominoes.FallOver();
        }
예제 #2
0
        private void btnDominoSetUpZ_Click(object sender, EventArgs e)
        {
            using (Graphics g = this.CreateGraphics())
            {
                g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
                g.Clear(this.BackColor);
                using (CPI.Plot3D.Plotter3D p = new CPI.Plot3D.Plotter3D(g, new Point3D(350, 100, -600)))
                {
                    p.Location = new Point3D(100, 200, 0);

                    p.TurnDown(90);

                    Dominoes d = new Dominoes(10, 60, 120, 16, 60);

                    d.Render(p);
                }
            }
        }