示例#1
0
        public Form1()
        {
            InitializeComponent();

            Tree();

            lblTime.Text = "";
            lbltotalenergy.Text = "";
            Canvas = GetContext();
        }
示例#2
0
        private void tmrAnimate_Tick(object sender, EventArgs e)
        {
            t++;
            lblTime.Text = t.ToString() + "s";

            Canvas = GetContext();

            Animate();

            Canvas.Clear(Color.Black);
            RedrawTree();
        }
示例#3
0
 void Form1_Resize(object sender, System.EventArgs e)
 {
     Canvas = GetContext();
 }