Пример #1
0
 public TurtleForm()
 {
     this.Title = "ZLOGO程序";
     StackFrame[] stacks = new StackTrace().GetFrames();
     Turtle = new TurtleSprite(this);
     Window = this;
 }
Пример #2
0
 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);
 }
Пример #3
0
 public TurtleSprite(TurtleForm form)
 {
     this.Graphics = new Draw2D(form.Width, form.Height);
     Init();
 }