private void timer1_Tick(object sender, EventArgs e)
{
// Let's move some joints to make a "hello" or "help meeee !" gesture !
model.Joints[0].Parameters.Theta = (float)(Math.Sin(angle) * Math.PI / 4 + Math.PI / 6);
model.Joints[1].Parameters.Theta = (float)(Math.Sin(angle) * Math.PI / 4 + Math.PI / 6);
// Increment the animation time
angle += (float)Math.PI / 30;
// Calculate the whole model
arm.Compute();
// Compute the images for displaying on the picture boxes
viewer.ComputeImages(arm);
// Refresh the pictures
pictureBox1.Refresh();
pictureBox2.Refresh();
pictureBox3.Refresh();
}