コード例 #1
0
ファイル: Form1.cs プロジェクト: Dicere/repozzzz2.0
 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();
 }
コード例 #2
0
 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);
 }