private void 增加ToolStripMenuItem_Click(object sender, EventArgs e) { if (uid == "") { MessageBox.Show("请先选择变电站", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } frmImgAdd f = new frmImgAdd(); f.Uid = uid; if (f.ShowDialog() == DialogResult.OK) { LoadData(uid); } }
private void 增加ToolStripMenuItem_Click(object sender, EventArgs e) { if(uid==""){ MessageBox.Show("请先选择变电站","提示",MessageBoxButtons.OK,MessageBoxIcon.Information); return; } frmImgAdd f = new frmImgAdd(); f.Uid = uid; if (f.ShowDialog() == DialogResult.OK) { LoadData(uid); } }