如题- private void pictureBox1_Click(object sender, EventArgs e)
- {
- OpenFileDialog pcT = new OpenFileDialog();
- if (pcT.ShowDialog() == DialogResult.OK)
- {
- string path = pcT.SafeFileName;
- pBox1 .ImageLocation = path;
-
- }
- }
复制代码
第二个的click事件 每次都是会改变picturebox1的图片 请问怎么使两个公用一个方法 |
|