Example #1
0
        private void DefaultBtn_Click(object sender, EventArgs e)
        {
            var serverInfo = ConfigurationManager.GetSection("mongoServerInfo") as System.Collections.Specialized.NameValueCollection;

            DbAddressTxt.Text      = serverInfo["ServerAddr"].ToString();
            DbNameTxt.Text         = serverInfo["DBName"].ToString();
            CollectionNameTxt.Text = serverInfo["CollectionName"].ToString();
            PortTxt.Text           = serverInfo["Port"].ToString();
            ConnectBtn.Focus();
        }