private void Krug1_Click(object sender, EventArgs e) { gr = panel1.CreateGraphics(); x = Convert.ToInt32(textBox1.Text); y = Convert.ToInt32(textBox2.Text); r = Convert.ToInt32(textBox3.Text); cir = new circle(x, y, r, 0, 0, k); Refresh(); }
public vagon(int x, int y, int r, int w, int h, int k) : base(x, y, r, w, h, k) { wheel1 = new circle(x, y, r, w, h, k); wheel2 = new circle(x + 45, y, r, w, h, k); }