// Scale button callback private void ScaleBtn_Click(object sender, EventArgs e) { UncheckTransformButtons(); ScaleBtn.Checked = true; transformation = new Scale(); transformFn = ScaleScene; }
// Rotation button callback (Z) private void RotateZBtn_Click(object sender, EventArgs e) { UncheckTransformButtons(); RotateZBtn.Checked = true; transformation = new Rotate(); transformFn = RotateZAxis; }