Beispiel #1
0
        private void GetConStr()
        {
            string conn = ConnectionStrings.GetConnectionValue("KindleDb");

            string[] str = conn.Split(';');
            for (var i = 0; i < str.Count() - 1; i++)
            {
                str[i] = GetValue(str[i]);
            }
            this.BeginInvoke(new MethodInvoker(() =>
            {
                txtAddress.Text = str[0];
                txtName.Text    = str[1];
                txtUser.Text    = str[2];
                txtPwd.Text     = str[3];
                SetSqlControlEnable(false);
            }));
        }
Beispiel #2
0
 public BookContext() : base(ConnectionStrings.GetConnectionValue("KindleDb"))
 {
 }