public void loadNofityForm(string msg, int bHide, int seconds) { if (this.InvokeRequired) { InvokeLoadNofityForm cb = new InvokeLoadNofityForm(loadNofityForm); this.Invoke(cb, new object[] { msg, bHide, seconds }); return; } string classname = Global.getClassname(); if (Global.IsPublicClassroom()) { classname = "公共教室"; } string title = Global.getSchoolname() + " - " + classname + ""; if (fNotify != null) { if (bHide == 1) { fNotify.Hide(); } else { fNotify.updateForm(title, msg); if (!FormNotify.m_PPTImgExporting) { fNotify.Show(); } } } else { fNotify = new FormNotify(title, msg, seconds); if (!FormNotify.m_PPTImgExporting) { fNotify.Show(); } } }
public void showForm(object sender, EventArgs e) { fNotify = sender as FormNotify; fNotify.Show(); }