Beispiel #1
0
        public Form1()
        {
            InitializeComponent();

            Tree();

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

            Canvas = GetContext();

            Animate();

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