Exemple #1
0
        private void btnExit_Click(object sender, EventArgs e)
        {
            FrmTMStat frm = new FrmTMStat();

            frm.Dispose();
            b = true;
            timer.AutoReset = false;
            string strmsg = string.Format(">>>退出系统时间【TM统计查询】:{0}", DateTime.Now);

            SetTB(strmsg);
            Close();
        }
Exemple #2
0
        private void tM统计查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form childredForm in MdiChildren)
            {
                if (childredForm.Name == "FrmTMStat")
                {
                    childredForm.Visible = true;
                    childredForm.Activate();
                    childredForm.WindowState = FormWindowState.Maximized;
                    return;
                }
            }
            FrmTMStat tm = new FrmTMStat();

            tm.MdiParent   = this;
            tm.WindowState = FormWindowState.Maximized;
            tm.Show();
        }