2011年4月27日

winform窗体只创建一次对象一个窗体

摘要: 方法1,设置flag. 这个方法是最平常的了 ,没什么好说的,但不是最佳的选择,因为当窗口多了,难道每个窗口都在配一个flag吗?故鄙人推荐下面的方法。方法2 主窗口public partial class MainForm : Form { public static MessageReplyer m_messageReply = null; public MainForm() { InitializeComponent(); } private void toolStripButton1_Click(object sender, EventArgs e) { if (m_messageRe 阅读全文

posted @ 2011-04-27 15:43 Daywei 阅读(1146) 评论(0) 推荐(0)

导航

技术追求卓越 梦想创造未来