public void 平移ToolStripMenuItem_Click(object sender, EventArgs e)
{
change ch = new change();
if (ch.DialogResult == DialogResult.OK)
{
int x = Convert.ToInt32(ch.getX);
int y = Convert.ToInt32(ch.getY);
Graphics g = pictureBox1.CreateGraphics();
Font font = new Font("", 12, FontStyle.Bold);
SolidBrush s = new SolidBrush(Color.Red);
g.DrawString("x=\n" + x, font, s, 0, 0);
g.DrawString("y=\n" + y, font, s, 0, 0);
}
}
}
}
这段代码不能调用程序,求大神帮助
{
change ch = new change();
if (ch.DialogResult == DialogResult.OK)
{
int x = Convert.ToInt32(ch.getX);
int y = Convert.ToInt32(ch.getY);
Graphics g = pictureBox1.CreateGraphics();
Font font = new Font("", 12, FontStyle.Bold);
SolidBrush s = new SolidBrush(Color.Red);
g.DrawString("x=\n" + x, font, s, 0, 0);
g.DrawString("y=\n" + y, font, s, 0, 0);
}
}
}
}
这段代码不能调用程序,求大神帮助