Example #1
0
        /// <summary>
        /// 退出
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnExit_Click(object sender, EventArgs e)
        {
            FrmTestitems frm = new FrmTestitems();

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

            SetTB(strmsg);
            Close();
        }
Example #2
0
        private void 康源项目对照同步ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form f in MdiChildren)
            {
                if (f.Name == "FrmTestitems")
                {
                    f.Visible = true;
                    f.Activate();
                    f.WindowState = FormWindowState.Maximized;
                    return;
                }
            }
            FrmTestitems items = new FrmTestitems();

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