private void B2_Click(object sender, EventArgs e) { TextBox t2 = FindControl(panel1, "t2") as TextBox; double scale; double.TryParse(t2.Text, out scale); f = Figure.Scale(f, scale); RedrawPolygon(f); }
private void Scale(double x, double y, double z) { f.Scale(x, y, z); }