コード例 #1
0
ファイル: Form1.cs プロジェクト: chenliang123/xiaozhushou
        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();
                }
            }
        }
コード例 #2
0
ファイル: Form12.cs プロジェクト: chenliang123/liaoNingYiDong
 public void showForm(object sender, EventArgs e)
 {
     fNotify = sender as FormNotify;
     fNotify.Show();
 }