public TurtleForm() { this.Title = "ZLOGO程序"; StackFrame[] stacks = new StackTrace().GetFrames(); Turtle = new TurtleSprite(this); Window = this; }
public TurtleForm() { StackFrame[] stacks = new StackTrace().GetFrames(); //Console.WriteLine(StackFramesToString(stacks)); Turtle = new TurtleSprite(); //Console.WriteLine("TurtleTestForm Init"); Turtle.Init(this); this.Size = new Size(800, 600); Window = this; //RunZLogo(); //this.Load += new System.EventHandler(this.TurtleForm_Load); this.Activated += new System.EventHandler(this.TurtleForm_Activated); }
public TurtleSprite(TurtleForm form) { this.Graphics = new Draw2D(form.Width, form.Height); Init(); }