📄 newprojectdb.cs
字号:
if (disposing && (this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void FolderCheck(string Folder)
{
DirectoryInfo info = new DirectoryInfo(Folder);
if (!info.Exists)
{
info.Create();
}
}
private string GetBLLType()
{
string appGuid = "";
appGuid = this.cm_blltype.AppGuid;
if ((appGuid == "") && (appGuid == "System.Data.DataRowView"))
{
MessageBox.Show("选择的数据层类型有误,请关闭后重试!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
return "";
}
return appGuid;
}
private string GetDALType()
{
string appGuid = "";
appGuid = this.cm_daltype.AppGuid;
if ((appGuid == "") && (appGuid == "System.Data.DataRowView"))
{
MessageBox.Show("选择的数据层类型有误,请关闭后重试!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
return "";
}
return appGuid;
}
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(NewProjectDB));
this.btn_Export = new ButtonXP();
this.groupBox2 = new GroupBox();
this.btn_Addlist = new Button();
this.btn_Add = new Button();
this.btn_Del = new Button();
this.btn_Dellist = new Button();
this.listTable2 = new ListBox();
this.listTable1 = new ListBox();
this.progressBar1 = new ProgressBar();
this.labelNum = new Label();
this.groupBox1 = new GroupBox();
this.cmbDB = new ComboBox();
this.lblServer = new Label();
this.label1 = new Label();
this.label3 = new Label();
this.btn_Cancle = new ButtonXP();
this.groupBox5 = new GroupBox();
this.groupBox7 = new GroupBox();
this.buttonXP1 = new ButtonXP();
this.label5 = new Label();
this.txtFolder = new TextBox();
this.label4 = new Label();
this.txtNamespace = new TextBox();
this.label6 = new Label();
this.txtDbHelper = new TextBox();
this.groupBox4 = new GroupBox();
this.label8 = new Label();
this.txtTabNamepre = new TextBox();
this.label7 = new Label();
this.pictureBox1 = new PictureBox();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout();
((ISupportInitialize) this.pictureBox1).BeginInit();
base.SuspendLayout();
this.btn_Export._Image = null;
this.btn_Export.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
this.btn_Export.BackColor = Color.FromArgb(0, 0xec, 0xe9, 0xd8);
this.btn_Export.DefaultScheme = false;
this.btn_Export.DialogResult = DialogResult.None;
this.btn_Export.Image = null;
this.btn_Export.Location = new Point(0x171, 0x17d);
this.btn_Export.Name = "btn_Export";
this.btn_Export.Scheme = ButtonXP.Schemes.Blue;
this.btn_Export.Size = new Size(0x4b, 0x1a);
this.btn_Export.TabIndex = 0x2e;
this.btn_Export.Text = "开始生成";
this.btn_Export.Click += new EventHandler(this.btn_Export_Click);
this.groupBox2.Controls.Add(this.btn_Addlist);
this.groupBox2.Controls.Add(this.btn_Add);
this.groupBox2.Controls.Add(this.btn_Del);
this.groupBox2.Controls.Add(this.btn_Dellist);
this.groupBox2.Controls.Add(this.listTable2);
this.groupBox2.Controls.Add(this.listTable1);
this.groupBox2.Location = new Point(8, 0x36);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new Size(0x21e, 140);
this.groupBox2.TabIndex = 0x2c;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "选择表";
this.btn_Addlist.Enabled = false;
this.btn_Addlist.FlatStyle = FlatStyle.Popup;
this.btn_Addlist.Location = new Point(0xf9, 20);
this.btn_Addlist.Name = "btn_Addlist";
this.btn_Addlist.Size = new Size(40, 0x17);
this.btn_Addlist.TabIndex = 7;
this.btn_Addlist.Text = ">>";
this.btn_Addlist.Click += new EventHandler(this.btn_Addlist_Click);
this.btn_Add.Enabled = false;
this.btn_Add.FlatStyle = FlatStyle.Popup;
this.btn_Add.Location = new Point(0xf9, 0x31);
this.btn_Add.Name = "btn_Add";
this.btn_Add.Size = new Size(40, 0x17);
this.btn_Add.TabIndex = 8;
this.btn_Add.Text = ">";
this.btn_Add.Click += new EventHandler(this.btn_Add_Click);
this.btn_Del.Enabled = false;
this.btn_Del.FlatStyle = FlatStyle.Popup;
this.btn_Del.Location = new Point(0xf9, 0x4d);
this.btn_Del.Name = "btn_Del";
this.btn_Del.Size = new Size(40, 0x17);
this.btn_Del.TabIndex = 5;
this.btn_Del.Text = "<";
this.btn_Del.Click += new EventHandler(this.btn_Del_Click);
this.btn_Dellist.Enabled = false;
this.btn_Dellist.FlatStyle = FlatStyle.Popup;
this.btn_Dellist.Location = new Point(0xf9, 0x6a);
this.btn_Dellist.Name = "btn_Dellist";
this.btn_Dellist.Size = new Size(40, 0x17);
this.btn_Dellist.TabIndex = 6;
this.btn_Dellist.Text = "<<";
this.btn_Dellist.Click += new EventHandler(this.btn_Dellist_Click);
this.listTable2.ItemHeight = 12;
this.listTable2.Location = new Point(0x143, 20);
this.listTable2.Name = "listTable2";
this.listTable2.SelectionMode = SelectionMode.MultiExtended;
this.listTable2.Size = new Size(0xc6, 0x70);
this.listTable2.TabIndex = 1;
this.listTable2.DoubleClick += new EventHandler(this.listTable2_DoubleClick);
this.listTable1.ItemHeight = 12;
this.listTable1.Location = new Point(0x10, 20);
this.listTable1.Name = "listTable1";
this.listTable1.SelectionMode = SelectionMode.MultiExtended;
this.listTable1.Size = new Size(0xc6, 0x70);
this.listTable1.TabIndex = 0;
this.listTable1.DoubleClick += new EventHandler(this.listTable1_DoubleClick);
this.progressBar1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom;
this.progressBar1.Location = new Point(0x2b, 0x159);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new Size(0x1f7, 0x10);
this.progressBar1.TabIndex = 10;
this.labelNum.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
this.labelNum.Location = new Point(10, 0x184);
this.labelNum.Name = "labelNum";
this.labelNum.Size = new Size(0x2e, 0x16);
this.labelNum.TabIndex = 9;
this.labelNum.TextAlign = ContentAlignment.MiddleCenter;
this.groupBox1.Controls.Add(this.cmbDB);
this.groupBox1.Controls.Add(this.lblServer);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Location = new Point(8, 5);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(0x21e, 0x2f);
this.groupBox1.TabIndex = 0x2b;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "选择数据库";
this.cmbDB.DropDownStyle = ComboBoxStyle.DropDownList;
this.cmbDB.Location = new Point(0x169, 20);
this.cmbDB.Name = "cmbDB";
this.cmbDB.Size = new Size(0x98, 20);
this.cmbDB.TabIndex = 2;
this.cmbDB.SelectedIndexChanged += new EventHandler(this.cmbDB_SelectedIndexChanged);
this.lblServer.AutoSize = true;
this.lblServer.Location = new Point(0x68, 0x16);
this.lblServer.Name = "lblServer";
this.lblServer.Size = new Size(0x29, 12);
this.lblServer.TabIndex = 1;
this.lblServer.Text = "label2";
this.label1.AutoSize = true;
this.label1.Location = new Point(0x10, 0x16);
this.label1.Name = "label1";
this.label1.Size = new Size(0x4d, 12);
this.label1.TabIndex = 0;
this.label1.Text = "当前服务器:";
this.label3.AutoSize = true;
this.label3.Location = new Point(0x119, 0x16);
this.label3.Name = "label3";
this.label3.Size = new Size(0x4d, 12);
this.label3.TabIndex = 0;
this.label3.Text = "选择数据库:";
this.btn_Cancle._Image = null;
this.btn_Cancle.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
this.btn_Cancle.BackColor = Color.FromArgb(0, 0xec, 0xe9, 0xd8);
this.btn_Cancle.DefaultScheme = false;
this.btn_Cancle.DialogResult = DialogResult.None;
this.btn_Cancle.Image = null;
this.btn_Cancle.Location = new Point(460, 0x17d);
this.btn_Cancle.Name = "btn_Cancle";
this.btn_Cancle.Scheme = ButtonXP.Schemes.Blue;
this.btn_Cancle.Size = new Size(0x4b, 0x1a);
this.btn_Cancle.TabIndex = 0x2d;
this.btn_Cancle.Text = "取消";
this.btn_Cancle.Click += new EventHandler(this.btn_Cancle_Click);
this.groupBox5.Location = new Point(8, 0x10f);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new Size(0x21e, 0x3f);
this.groupBox5.TabIndex = 0x31;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "代码模板组件类型";
this.groupBox7.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom;
this.groupBox7.Location = new Point(0x10, 0x16c);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new Size(530, 4);
this.groupBox7.TabIndex = 0x33;
this.groupBox7.TabStop = false;
this.buttonXP1._Image = null;
this.buttonXP1.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
this.buttonXP1.BackColor = Color.FromArgb(0, 0xec, 0xe9, 0xd8);
this.buttonXP1.DefaultScheme = false;
this.buttonXP1.DialogResult = DialogResult.None;
this.buttonXP1.Image = null;
this.buttonXP1.Location = new Point(0x116, 0x17e);
this.buttonXP1.Name = "buttonXP1";
this.buttonXP1.Scheme = ButtonXP.Schemes.Blue;
this.buttonXP1.Size = new Size(0x4b, 0x1a);
this.buttonXP1.TabIndex = 0x2d;
this.buttonXP1.Text = "< 上一步";
this.buttonXP1.Click += new EventHandler(this.buttonXP1_Click);
this.label5.AutoSize = true;
this.label5.Location = new Point(0xb6, 0x15);
this.label5.Name = "label5";
this.label5.Size = new Size(0x41, 12);
this.label5.TabIndex = 0;
this.label5.Text = "文件夹名:";
this.txtFolder.Location = new Point(0xf6, 0x11);
this.txtFolder.Name = "txtFolder";
this.txtFolder.Size = new Size(90, 0x15);
this.txtFolder.TabIndex = 1;
this.label4.AutoSize = true;
this.label4.Location = new Point(10, 0x15);
this.label4.Name = "label4";
this.label4.Size = new Size(0x41, 12);
this.label4.TabIndex = 0;
this.label4.Text = "命名空间:";
this.txtNamespace.Location = new Point(0x4c, 0x11);
this.txtNamespace.Name = "txtNamespace";
this.txtNamespace.Size = new Size(90, 0x15);
this.txtNamespace.TabIndex = 1;
this.txtNamespace.Text = "Maticsoft";
this.label6.AutoSize = true;
this.label6.Location = new Point(0x160, 0x15);
this.label6.Name = "label6";
this.label6.Size = new Size(0x4d, 12);
this.label6.TabIndex = 0;
this.label6.Text = "数据访问类:";
this.txtDbHelper.Location = new Point(0x1b4, 0x11);
this.txtDbHelper.Name = "txtDbHelper";
this.txtDbHelper.Size = new Size(90, 0x15);
this.txtDbHelper.TabIndex = 1;
this.txtDbHelper.Text = "DbHelperSQL";
this.groupBox4.Controls.Add(this.label8);
this.groupBox4.Controls.Add(this.txtTabNamepre);
this.groupBox4.Controls.Add(this.label7);
this.groupBox4.Controls.Add(this.txtDbHelper);
this.groupBox4.Controls.Add(this.label6);
this.groupBox4.Controls.Add(this.txtNamespace);
this.groupBox4.Controls.Add(this.label4);
this.groupBox4.Controls.Add(this.txtFolder);
this.groupBox4.Controls.Add(this.label5);
this.groupBox4.Location = new Point(8, 0xc4);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new Size(0x21e, 0x45);
this.groupBox4.TabIndex = 0x30;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "参数设定";
this.label8.AutoSize = true;
this.label8.Location = new Point(0x144, 0x2e);
this.label8.Name = "label8";
this.label8.Size = new Size(0x59, 12);
this.label8.TabIndex = 7;
this.label8.Text = "(留空表示不变)";
this.txtTabNamepre.Location = new Point(0xe0, 0x2a);
this.txtTabNamepre.Name = "txtTabNamepre";
this.txtTabNamepre.Size = new Size(100, 0x15);
this.txtTabNamepre.TabIndex = 6;
this.label7.AutoSize = true;
this.label7.Location = new Point(12, 0x2e);
this.label7.Name = "label7";
this.label7.Size = new Size(0xd1, 12);
this.label7.TabIndex = 5;
this.label7.Text = "表名直接变为类名后,去掉表名前缀:";
this.pictureBox1.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
this.pictureBox1.Image = Resources.Control;
this.pictureBox1.Location = new Point(12, 0x151);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new Size(0x1c, 0x1c);
this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0x34;
this.pictureBox1.TabStop = false;
this.pictureBox1.Visible = false;
this.AutoScaleBaseSize = new Size(6, 14);
base.ClientSize = new Size(0x232, 0x1a3);
base.Controls.Add(this.pictureBox1);
base.Controls.Add(this.groupBox7);
base.Controls.Add(this.groupBox5);
base.Controls.Add(this.groupBox4);
base.Controls.Add(this.btn_Export);
base.Controls.Add(this.groupBox2);
base.Controls.Add(this.groupBox1);
base.Controls.Add(this.buttonXP1);
base.Controls.Add(this.btn_Cancle);
base.Controls.Add(this.labelNum);
base.Controls.Add(this.progressBar1);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -