Пример #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);
 }
Пример #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);
 }
Пример #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);
 }