Exemplo n.º 1
0
 private void tabMain_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (tabMain.SelectedIndex == 2)
     {
         lsServerUrl.Text = ReadConfig.GetRouterUrl();
     }
     else
     {
         lsServerUrl.Text = ReadConfig.GetWcfServerUrl();
     }
 }
Exemplo n.º 2
0
        private void FrmHosting_Load(object sender, EventArgs e)
        {
            this.Text = "efwplusServer 云医院中间件【" + HostSettingConfig.GetValue("hostname") + "】";
            this.notifyIcon1.Visible = true;
            this.notifyIcon1.Icon    = this.Icon;
            this.notifyIcon1.Text    = this.Text;

            RunState         = HostState.NoOpen;
            lsServerUrl.Text = ReadConfig.GetWcfServerUrl();
            btnStart_Click(null, null);//打开服务主机后自动启动服务
        }