Esempio n. 1
0
        private void 关于AToolStripMenuItem_Click(object sender, EventArgs e)
        {
            P170AboutForm aboutFrm = new P170AboutForm();

            aboutFrm.lblMainText = "大雄计算器";
            aboutFrm.ShowDialog();
        }
Esempio n. 2
0
        private void tsmAbout_Click(object sender, EventArgs e)
        {
            P170AboutForm aboutForm = new P170AboutForm();
            string        temp      = tssMsg.Text;

            tssMsg.Text = aboutForm.Text; // 在模态窗体生成之前在状态栏显示
            aboutForm.ShowDialog();       // 打开窗体, 该窗体是一个模态窗体
            tssMsg.Text = temp;           // 恢复
        }