⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loginoledb.cs

📁 通过数据库结构自动 生成三层结构代码,相当不错的一款软件
💻 CS
📖 第 1 页 / 共 2 页
字号:
            this.groupBox1.TabIndex = 2;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "登录数据库:";
            this.checkBox1.Checked = true;
            this.checkBox1.CheckState = CheckState.Checked;
            this.checkBox1.Location = new Point(0x48, 0x4d);
            this.checkBox1.Name = "checkBox1";
            this.checkBox1.Size = new Size(0x58, 0x18);
            this.checkBox1.TabIndex = 4;
            this.checkBox1.Text = "空白密码";
            this.checkBox1.CheckedChanged += new EventHandler(this.checkBox1_CheckedChanged);
            this.txtUser.Location = new Point(0x88, 0x18);
            this.txtUser.Name = "txtUser";
            this.txtUser.Size = new Size(120, 0x15);
            this.txtUser.TabIndex = 3;
            this.txtUser.Text = "";
            this.txtUser.TextChanged += new EventHandler(this.txtUser_TextChanged);
            this.label2.Location = new Point(0x38, 0x1a);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0x48, 0x10);
            this.label2.TabIndex = 2;
            this.label2.Text = "登录名(&L):";
            this.txtPass.Enabled = false;
            this.txtPass.Location = new Point(0x88, 0x30);
            this.txtPass.Name = "txtPass";
            this.txtPass.PasswordChar = '*';
            this.txtPass.Size = new Size(120, 0x15);
            this.txtPass.TabIndex = 3;
            this.txtPass.Text = "";
            this.txtPass.TextChanged += new EventHandler(this.txtPass_TextChanged);
            this.label3.Location = new Point(0x48, 50);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0x40, 0x10);
            this.label3.TabIndex = 2;
            this.label3.Text = "密码(&P):";
            this.pictureBox1.Image = (Image) manager.GetObject("pictureBox1.Image");
            this.pictureBox1.Location = new Point(0x10, 0x18);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new Size(0x26, 0x23);
            this.pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
            this.pictureBox1.TabIndex = 4;
            this.pictureBox1.TabStop = false;
            this.btn_Ok._Image = null;
            this.btn_Ok.BackColor = Color.FromArgb(0, 0xec, 0xe9, 0xd8);
            this.btn_Ok.DefaultScheme = false;
            this.btn_Ok.DialogResult = DialogResult.None;
            this.btn_Ok.Image = null;
            this.btn_Ok.Location = new Point(0x68, 240);
            this.btn_Ok.Name = "btn_Ok";
            this.btn_Ok.Scheme = ButtonXP.Schemes.Blue;
            this.btn_Ok.Size = new Size(0x4b, 0x18);
            this.btn_Ok.TabIndex = 0x13;
            this.btn_Ok.Text = "确定(&O):";
            this.btn_Ok.Click += new EventHandler(this.btn_Ok_Click);
            this.btn_Cancel._Image = null;
            this.btn_Cancel.BackColor = Color.FromArgb(0, 0xec, 0xe9, 0xd8);
            this.btn_Cancel.DefaultScheme = false;
            this.btn_Cancel.DialogResult = DialogResult.Cancel;
            this.btn_Cancel.Image = null;
            this.btn_Cancel.Location = new Point(0xe0, 240);
            this.btn_Cancel.Name = "btn_Cancel";
            this.btn_Cancel.Scheme = ButtonXP.Schemes.Blue;
            this.btn_Cancel.Size = new Size(0x4b, 0x18);
            this.btn_Cancel.TabIndex = 20;
            this.btn_Cancel.Text = "取消(&C):";
            this.btn_Cancel.Click += new EventHandler(this.btn_Cancel_Click);
            this.groupBox2.Controls.Add(this.txtServer);
            this.groupBox2.Controls.Add(this.radBtn_DB);
            this.groupBox2.Controls.Add(this.btn_SelDb);
            this.groupBox2.Location = new Point(0x18, 12);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new Size(0x170, 60);
            this.groupBox2.TabIndex = 0x15;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "选择数据库";
            this.radBtn_DB.Checked = true;
            this.radBtn_DB.Location = new Point(0x10, 0x16);
            this.radBtn_DB.Name = "radBtn_DB";
            this.radBtn_DB.TabIndex = 20;
            this.radBtn_DB.TabStop = true;
            this.radBtn_DB.Text = "数据库(&D):";
            this.radBtn_DB.Click += new EventHandler(this.radBtn_DB_Click);
            this.btn_SelDb._Image = null;
            this.btn_SelDb.BackColor = Color.FromArgb(0, 0xec, 0xe9, 0xd8);
            this.btn_SelDb.DefaultScheme = false;
            this.btn_SelDb.DialogResult = DialogResult.None;
            this.btn_SelDb.Image = null;
            this.btn_SelDb.Location = new Point(320, 0x16);
            this.btn_SelDb.Name = "btn_SelDb";
            this.btn_SelDb.Scheme = ButtonXP.Schemes.Blue;
            this.btn_SelDb.Size = new Size(40, 0x18);
            this.btn_SelDb.TabIndex = 0x13;
            this.btn_SelDb.Text = "...";
            this.btn_SelDb.Click += new EventHandler(this.btn_SelDb_Click);
            this.groupBox3.Controls.Add(this.txtConstr);
            this.groupBox3.Controls.Add(this.radBtn_Constr);
            this.groupBox3.Location = new Point(0x18, 0xc0);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new Size(0x170, 40);
            this.groupBox3.TabIndex = 0x16;
            this.groupBox3.TabStop = false;
            this.txtConstr.Enabled = false;
            this.txtConstr.Location = new Point(0x68, 12);
            this.txtConstr.Name = "txtConstr";
            this.txtConstr.Size = new Size(0x100, 0x15);
            this.txtConstr.TabIndex = 0;
            this.txtConstr.Text = "";
            this.radBtn_Constr.Location = new Point(12, 10);
            this.radBtn_Constr.Name = "radBtn_Constr";
            this.radBtn_Constr.TabIndex = 1;
            this.radBtn_Constr.Text = "连接字符串:";
            this.radBtn_Constr.Click += new EventHandler(this.radBtn_Constr_Click);
            base.AcceptButton = this.btn_Ok;
            this.AutoScaleBaseSize = new Size(6, 14);
            base.CancelButton = this.btn_Cancel;
            base.ClientSize = new Size(0x1a0, 0x110);
            base.Controls.Add(this.groupBox3);
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.btn_Cancel);
            base.Controls.Add(this.btn_Ok);
            base.Controls.Add(this.groupBox1);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "LoginOledb";
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text = "登录数据库....";
            base.Load += new EventHandler(this.LoginForm_Load);
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox3.ResumeLayout(false);
            base.ResumeLayout(false);
        }

        private void LoginForm_Load(object sender, EventArgs e)
        {
            this.toolTip1.SetToolTip(this.txtUser, "请保证该用户具有每个数据库的访问权!");
        }

        private void radBtn_Constr_Click(object sender, EventArgs e)
        {
            this.radBtn_DB.Checked = false;
            this.checkBox1.Enabled = false;
            this.txtServer.Enabled = false;
            this.txtPass.Enabled = false;
            this.txtUser.Enabled = false;
            this.txtConstr.Enabled = true;
        }

        private void radBtn_DB_Click(object sender, EventArgs e)
        {
            this.radBtn_Constr.Checked = false;
            this.checkBox1.Enabled = true;
            this.txtServer.Enabled = true;
            this.txtPass.Enabled = true;
            this.txtUser.Enabled = true;
            this.txtConstr.Enabled = false;
        }

        private void txtPass_TextChanged(object sender, EventArgs e)
        {
            this.GetConstr();
        }

        private void txtServer_TextChanged(object sender, EventArgs e)
        {
            this.GetConstr();
        }

        private void txtUser_TextChanged(object sender, EventArgs e)
        {
            this.GetConstr();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -