Пример #1
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            labHosName.Text = Settings.Default.医院名称;
            try
            {
                //pLogo.Image = Image.FromFile(Application.StartupPath + @"\\Image\\" + Settings.Default.医院LOGO, false);

                string[] files = System.IO.Directory.GetFiles(Application.StartupPath + @"\\HomeImage");
                foreach (string f in files)
                {
                    string fileName = System.IO.Path.GetFullPath(f);
                    imageList.Add(fileName);
                }

                if (imageList.Count > 0)
                {
                    picHome.Image = Image.FromFile(imageList[0].ToString(), false);
                }

                if (Settings.Default.启用医院介绍 == false)
                {
                    lbJS.Enabled = false;
                }

                if (Settings.Default.启用自助发卡 == false)
                {
                    lbFK.Enabled = false;
                }

                if (Settings.Default.启用消费查询 == false)
                {
                    lbXFCX.Enabled = false;
                }

                if (Settings.Default.启用自助充值 == false)
                {
                    lbCZ.Enabled = false;
                }
                if (Settings.Default.启用余额查询 == false)
                {
                    lbYECX.Enabled = false;
                }

                if (Settings.Default.启用自助挂号 == false)
                {
                    lbGH.Enabled = false;
                }
            }
            catch
            {
                //pLogo.Image = Image.FromFile(Application.StartupPath + @"\\Image\\默认logo.png", false);
            }



            SkyComm.Init();
        }
Пример #2
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            labHosName.Text = Settings.Default.医院名称;
            try
            {
                pLogo.Image = Image.FromFile(Application.StartupPath + @"\\Image\\" + Settings.Default.医院LOGO, false);
            }
            catch
            {
                pLogo.Image = Image.FromFile(Application.StartupPath + @"\\Image\\默认logo.png", false);
            }

            SkyComm.Init();
        }