Exemplo n.º 1
0
 public void Setup()
 {
     this.engine = new ValorEngine();
     this.form = new ValorForm();
     this.form.Engine = this.engine;
     this.context = new GraphicsBindingContext(this.form, Ri, Pi);
 }
Exemplo n.º 2
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     f = new ValorForm {Engine = new ValorEngine()};
     var ticker = new GraphicsBindingContext(f);
     ticker.Start();
     Application.Run(f);
 }
Exemplo n.º 3
0
 public void Constructor_GeneratesProperlyPopulatedContext()
 {
     this.context = new GraphicsBindingContext(this.form, Ri, Pi);
     Assert.IsTrue(this.context.Form == this.form && this.context.RenderInterval == Ri && this.context.PhysicsInterval == Pi);
 }