Exemple #1
0
        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="skiplogin"></param>
        /// <param name="loadmenu"></param>
        ///  <param name="m_ShowMainTopText">追加参数传递</param>add by ywk
        public StartupClass(bool skiplogin, string loadmenu, string m_ShowMainTopText, ArrayList appinfo)
        {
            Process myproc = new Process();

            Process[] prc = Process.GetProcesses();

            if (Process.GetProcessesByName("adcemr").Length <= 1)//没有开启多个EMR程序
            {
                if (Process.GetProcessesByName("AutoUpdate").Length == 0)
                {
                    DrectSoft.MainFrame.FormMain formain = new DrectSoft.MainFrame.FormMain(skiplogin, loadmenu, m_ShowMainTopText, appinfo);
                    Application.Run(formain);
                }
                else
                {
                    MessageBox.Show("自动更新程序已启动,请完成软件更新后重试。");
                    Application.Exit();
                }
            }
            else
            {
                MessageBox.Show("电子病历系统已启动,不能重复启动。");
                Application.Exit();
            }
        }
Exemple #2
0
 public FormLogin(FormMain formMain)
     : this()
 {
     this.m_FormMain = formMain;
 }