调用自定义的函数
怎么样去调用下面这个Get_XY()函数啊?public void Get_XY()
{
InfoBase infobase=new InfoBase ();
float R_Na = infobase.R_Na;
float R_Ca = infobase.R_Ca;
float Na2 = 100 * R_Na / 23 / Y_Sum;
float Na_x = -1 / 2 * Na2;
float Na_y = -r * Na_x;
}
private void buttonX1_Click(object sender, EventArgs e)
{
Graphics g = pictureBox1.CreateGraphics();
g.TranslateTransform(halfWidth, halfHeight);
g.Get_XY();(?)
g.DrawLine(new Pen(Color.Red), Ca_x, Ca_y, Na_x, Na_y);
}