예제 #1
0
 static void Main(string[] args)
 {
     Console.WriteLine("Hello Lottery!");
     //int x = 10;
     //TestPassOutParameter(ref x);
     //Console.WriteLine(x);
     txWorld world = new txWorld();
     world.SetUpScene();
     const double step = 0.001;
     for (int i = 0; i < 100; i++)
     {
         world.Simulate(step);
         Console.WriteLine("Step:  " + i);
     }
 }
예제 #2
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.SuspendLayout();
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(893, 694);
            this.Name = "Form1";
            this.Text = "Form1";
            this.ResumeLayout(false);

            world = new txWorld();
            world.SetUpScene();

            const double step = 0.1;
            for (int i = 0; i < 20; i++)
            {
                world.Simulate(step);
                //OnPaint(CreateGraphics());
            }
        }