private void Drawarc(PaintEventArgs e)
{
// Create pen.
System.Windows.Media.Pen blackPen = new
System.Windows.Media.Pen(System.Windows.Media.Brushes.Black, 3);
// Create rectangle to bound ellipse.
Microsoft.Xna.Framework.Rectangle rect = new Microsoft.Xna.Framework.Rectangle(100,
100, 140, 140);
// Create start and sweep angles on ellipse.
float startAngle = 45.0F;
float sweepAngle = 270.0F;
// Draw arc to screen.
//Graphics.DrawArc(blackPen, rect, startAngle, sweepAngle);
}
我试图这样调用这个函数
this.Drawarc();
所以它给了我以下错误
方法'Drawarc'没有重载需要0个参数
我知道我做错了什么请帮助