📄 dbtypesel.cs
字号:
namespace Codematic
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
public class DbTypeSel : Form
{
private Button btn_Cancel;
private Button btn_Next;
private IContainer components;
public string dbtype = "SQL2000";
private GroupBox groupBox1;
private RadioButton radbtn_dbtype_Access;
private RadioButton radbtn_dbtype_MySQL;
private RadioButton radbtn_dbtype_Oracle;
private RadioButton radbtn_dbtype_SQL2000;
public DbTypeSel()
{
this.InitializeComponent();
}
private void btn_Cancel_Click(object sender, EventArgs e)
{
base.Close();
}
private void btn_Next_Click(object sender, EventArgs e)
{
if (this.radbtn_dbtype_SQL2000.Checked)
{
this.dbtype = "SQL2000";
}
if (this.radbtn_dbtype_Oracle.Checked)
{
this.dbtype = "Oracle";
}
if (this.radbtn_dbtype_MySQL.Checked)
{
this.dbtype = "MySQL";
}
if (this.radbtn_dbtype_Access.Checked)
{
this.dbtype = "OleDb";
}
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.groupBox1 = new GroupBox();
this.radbtn_dbtype_Oracle = new RadioButton();
this.radbtn_dbtype_SQL2000 = new RadioButton();
this.radbtn_dbtype_Access = new RadioButton();
this.btn_Next = new Button();
this.btn_Cancel = new Button();
this.radbtn_dbtype_MySQL = new RadioButton();
this.groupBox1.SuspendLayout();
base.SuspendLayout();
this.groupBox1.Controls.Add(this.radbtn_dbtype_MySQL);
this.groupBox1.Controls.Add(this.radbtn_dbtype_Oracle);
this.groupBox1.Controls.Add(this.radbtn_dbtype_SQL2000);
this.groupBox1.Controls.Add(this.radbtn_dbtype_Access);
this.groupBox1.Location = new Point(10, 8);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(0x10a, 0x8f);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "选择数据源类型";
this.radbtn_dbtype_Oracle.Location = new Point(0x18, 0x34);
this.radbtn_dbtype_Oracle.Name = "radbtn_dbtype_Oracle";
this.radbtn_dbtype_Oracle.Size = new Size(0x68, 0x18);
this.radbtn_dbtype_Oracle.TabIndex = 4;
this.radbtn_dbtype_Oracle.Text = " Oracle";
this.radbtn_dbtype_SQL2000.Checked = true;
this.radbtn_dbtype_SQL2000.Location = new Point(0x18, 20);
this.radbtn_dbtype_SQL2000.Name = "radbtn_dbtype_SQL2000";
this.radbtn_dbtype_SQL2000.Size = new Size(160, 0x18);
this.radbtn_dbtype_SQL2000.TabIndex = 2;
this.radbtn_dbtype_SQL2000.TabStop = true;
this.radbtn_dbtype_SQL2000.Text = " SQL Server";
this.radbtn_dbtype_Access.Location = new Point(0x18, 0x6c);
this.radbtn_dbtype_Access.Name = "radbtn_dbtype_Access";
this.radbtn_dbtype_Access.Size = new Size(0x68, 0x18);
this.radbtn_dbtype_Access.TabIndex = 3;
this.radbtn_dbtype_Access.Text = " OleDb";
this.btn_Next.DialogResult = DialogResult.OK;
this.btn_Next.Location = new Point(0x60, 0xb0);
this.btn_Next.Name = "btn_Next";
this.btn_Next.Size = new Size(0x4b, 0x19);
this.btn_Next.TabIndex = 1;
this.btn_Next.Text = "下一步";
this.btn_Next.UseVisualStyleBackColor = true;
this.btn_Next.Click += new EventHandler(this.btn_Next_Click);
this.btn_Cancel.DialogResult = DialogResult.Cancel;
this.btn_Cancel.Location = new Point(0xbc, 0xb0);
this.btn_Cancel.Name = "btn_Cancel";
this.btn_Cancel.Size = new Size(0x4b, 0x19);
this.btn_Cancel.TabIndex = 1;
this.btn_Cancel.Text = "取 消";
this.btn_Cancel.UseVisualStyleBackColor = true;
this.btn_Cancel.Click += new EventHandler(this.btn_Cancel_Click);
this.radbtn_dbtype_MySQL.AutoSize = true;
this.radbtn_dbtype_MySQL.Location = new Point(0x18, 0x54);
this.radbtn_dbtype_MySQL.Name = "radbtn_dbtype_MySQL";
this.radbtn_dbtype_MySQL.Size = new Size(0x3b, 0x10);
this.radbtn_dbtype_MySQL.TabIndex = 5;
this.radbtn_dbtype_MySQL.TabStop = true;
this.radbtn_dbtype_MySQL.Text = " MySQL";
this.radbtn_dbtype_MySQL.UseVisualStyleBackColor = true;
base.AutoScaleDimensions = new SizeF(6f, 12f);
base.AutoScaleMode = AutoScaleMode.Font;
base.ClientSize = new Size(290, 0xd5);
base.Controls.Add(this.btn_Cancel);
base.Controls.Add(this.btn_Next);
base.Controls.Add(this.groupBox1);
base.FormBorderStyle = FormBorderStyle.FixedDialog;
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "DbTypeSel";
base.StartPosition = FormStartPosition.CenterScreen;
this.Text = "选择数据库类型";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
base.ResumeLayout(false);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -