Beispiel #1
0
        private void FrmSetting_Load(object sender, EventArgs e)
        {
            txthostname.Text              = HostSettingConfig.GetValue("hostname");
            ckRoot.Checked                = HostSettingConfig.GetValue("rootmnode") == "1" ? true : false;
            ckdebug.Checked               = HostSettingConfig.GetValue("debug") == "1" ? true : false;
            cktask.Checked                = HostSettingConfig.GetValue("timingtask") == "1" ? true : false;
            ckwcf.Checked                 = HostSettingConfig.GetValue("wcfservice") == "1" ? true : false;
            ckrouter.Checked              = HostSettingConfig.GetValue("router") == "1" ? true : false;
            ckfile.Checked                = HostSettingConfig.GetValue("filetransfer") == "1" ? true : false;
            ckWebapi.Checked              = HostSettingConfig.GetValue("webapi") == "1" ? true : false;
            ckmongo.Checked               = HostSettingConfig.GetValue("mongodb") == "1" ? true : false;
            ckheartbeat.Checked           = HostSettingConfig.GetValue("heartbeat") == "1" ? true : false;
            txtheartbeattime.Text         = HostSettingConfig.GetValue("heartbeattime");
            ckmessage.Checked             = HostSettingConfig.GetValue("message") == "1" ? true : false;
            txtmessagetime.Text           = HostSettingConfig.GetValue("messagetime");
            ckJsoncompress.Checked        = HostSettingConfig.GetValue("compress") == "1" ? true : false;
            ckEncryption.Checked          = HostSettingConfig.GetValue("encryption") == "1" ? true : false;
            cktoken.Checked               = HostSettingConfig.GetValue("token") == "1" ? true : false;
            ckovertime.Checked            = HostSettingConfig.GetValue("overtime") == "1" ? true : false;
            txtovertime.Text              = HostSettingConfig.GetValue("overtimetime");
            cbSerializeType.SelectedIndex = Convert.ToInt32(HostSettingConfig.GetValue("serializetype"));
            ckNginx.Checked               = HostSettingConfig.GetValue("nginx") == "1" ? true : false;

            txtwcf.Text        = HostAddressConfig.GetWcfAddress();
            txtfile.Text       = HostAddressConfig.GetFileAddress();
            txtrouter.Text     = HostAddressConfig.GetRouterAddress();
            txtfilerouter.Text = HostAddressConfig.GetfileRouterAddress();
            txtwcfurl.Text     = HostAddressConfig.GetClientWcfAddress();
            txtfileurl.Text    = HostAddressConfig.GetClientFileAddress();
            txtlocalurl.Text   = HostAddressConfig.GetClientLocalAddress();
            //txtweb.Text = HostAddressConfig.GetWebapiAddress();
            //txtclientwcf.Text = HostAddressConfig.GetWebapiClientBase();
            //txtclientfile.Text = HostAddressConfig.GetWebapiClientFile();
            txtupdate.Text = HostAddressConfig.GetUpdaterUrl();

            txtconnstr.Text      = HostDataBaseConfig.GetConnString();
            txtmongobinpath.Text = HostSettingConfig.GetValue("mongodb_binpath");
            txtmongodb_conn.Text = HostSettingConfig.GetValue("mongodb_conn");
            txtMongodb.Text      = HostMongoDBConfig.GetConfig();
        }