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

            frm.Dispose();
            b = true;
            timer.AutoReset = false;
            string strmsg = string.Format(">>>退 出 时 间:{0}", DateTime.Now);

            SetTB(strmsg);
            Close();
        }
Exemple #2
0
        private void 自动初步总检ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in MdiChildren)
            {
                if (f.Name == "FrmAutoChuBu")
                {
                    f.Visible = true;
                    f.Activate();
                    f.WindowState = FormWindowState.Maximized;
                    return;
                }
            }
            FrmAutoChuBu items = new FrmAutoChuBu();

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