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

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

            SetTB(strmsg);
            Close();
        }
Example #2
0
        private void 社区在线数据传输ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form childrenForm in this.MdiChildren)
            {
                //检测是不是当前子窗体名称
                if (childrenForm.Name == "FrmUploadShequ88")
                {
                    //是的话就是把他显示
                    childrenForm.Visible = true;           //并激活该窗体
                    childrenForm.Activate();
                    childrenForm.WindowState = FormWindowState.Maximized;
                    return;
                }
            }

            FrmUploadShequ88 shequ88 = new FrmUploadShequ88();

            shequ88.MdiParent   = this;
            shequ88.WindowState = FormWindowState.Maximized;
            shequ88.Show();
            //shequ88.ShowDialog();
        }