📄 uccsnameset.cs
字号:
namespace Codematic.UserControls
{
using LTP.CmConfig;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
public class UcCSNameSet : UserControl
{
private IContainer components;
private GroupBox groupBox1;
private GroupBox groupBox2;
private GroupBox groupBox3;
private GroupBox groupBox4;
private Label label1;
private Label label3;
private Label label4;
private Label label6;
private Label label7;
private Label label9;
private Label lblTabBLL;
private Label lblTabDAL;
private Label lblTabModel;
public RadioButton radbtn_Lower;
public RadioButton radbtn_Same;
public RadioButton radbtn_Upper;
public TextBox txtBLL_Prefix;
public TextBox txtBLL_Suffix;
public TextBox txtDAL_Prefix;
public TextBox txtDAL_Suffix;
public TextBox txtModel_Prefix;
public TextBox txtModel_Suffix;
public UcCSNameSet()
{
this.InitializeComponent();
ModuleSettings settings = ModuleConfig.GetSettings();
this.txtBLL_Prefix.Text = settings.BLLPrefix;
this.txtBLL_Suffix.Text = settings.BLLSuffix;
this.txtDAL_Prefix.Text = settings.DALPrefix;
this.txtDAL_Suffix.Text = settings.DALSuffix;
this.txtModel_Prefix.Text = settings.ModelPrefix;
this.txtModel_Suffix.Text = settings.ModelSuffix;
switch (settings.TabNameRule.ToLower())
{
case "same":
this.radbtn_Same.Checked = true;
return;
case "lower":
this.radbtn_Lower.Checked = true;
return;
case "upper":
this.radbtn_Upper.Checked = true;
return;
}
this.radbtn_Same.Checked = true;
}
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.groupBox2 = new GroupBox();
this.groupBox3 = new GroupBox();
this.groupBox4 = new GroupBox();
this.txtModel_Prefix = new TextBox();
this.label1 = new Label();
this.lblTabModel = new Label();
this.label3 = new Label();
this.txtModel_Suffix = new TextBox();
this.txtBLL_Prefix = new TextBox();
this.txtBLL_Suffix = new TextBox();
this.label4 = new Label();
this.lblTabBLL = new Label();
this.label6 = new Label();
this.label7 = new Label();
this.txtDAL_Suffix = new TextBox();
this.lblTabDAL = new Label();
this.txtDAL_Prefix = new TextBox();
this.label9 = new Label();
this.radbtn_Same = new RadioButton();
this.radbtn_Upper = new RadioButton();
this.radbtn_Lower = new RadioButton();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
base.SuspendLayout();
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.lblTabModel);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.txtModel_Suffix);
this.groupBox1.Controls.Add(this.txtModel_Prefix);
this.groupBox1.Location = new Point(12, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(0x162, 50);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Model类命名规则";
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Controls.Add(this.txtBLL_Prefix);
this.groupBox2.Controls.Add(this.lblTabBLL);
this.groupBox2.Controls.Add(this.txtBLL_Suffix);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Location = new Point(12, 70);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new Size(0x162, 50);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "BLL层类命名规则";
this.groupBox3.Controls.Add(this.label9);
this.groupBox3.Controls.Add(this.txtDAL_Prefix);
this.groupBox3.Controls.Add(this.label7);
this.groupBox3.Controls.Add(this.lblTabDAL);
this.groupBox3.Controls.Add(this.txtDAL_Suffix);
this.groupBox3.Location = new Point(12, 0x80);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new Size(0x162, 50);
this.groupBox3.TabIndex = 1;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "DAL层类命名规则";
this.groupBox4.Controls.Add(this.radbtn_Lower);
this.groupBox4.Controls.Add(this.radbtn_Upper);
this.groupBox4.Controls.Add(this.radbtn_Same);
this.groupBox4.Location = new Point(12, 0xb8);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new Size(0x162, 0x3a);
this.groupBox4.TabIndex = 2;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "表名规则";
this.txtModel_Prefix.Location = new Point(0x31, 0x15);
this.txtModel_Prefix.Name = "txtModel_Prefix";
this.txtModel_Prefix.Size = new Size(0x41, 0x15);
this.txtModel_Prefix.TabIndex = 0;
this.label1.AutoSize = true;
this.label1.Location = new Point(0x80, 0x19);
this.label1.Name = "label1";
this.label1.Size = new Size(11, 12);
this.label1.TabIndex = 1;
this.label1.Text = "+";
this.lblTabModel.AutoSize = true;
this.lblTabModel.Location = new Point(0x99, 0x19);
this.lblTabModel.Name = "lblTabModel";
this.lblTabModel.Size = new Size(0x1d, 12);
this.lblTabModel.TabIndex = 1;
this.lblTabModel.Text = "表名";
this.label3.AutoSize = true;
this.label3.Location = new Point(0xc4, 0x19);
this.label3.Name = "label3";
this.label3.Size = new Size(11, 12);
this.label3.TabIndex = 1;
this.label3.Text = "+";
this.txtModel_Suffix.Location = new Point(0xdd, 0x15);
this.txtModel_Suffix.Name = "txtModel_Suffix";
this.txtModel_Suffix.Size = new Size(0x41, 0x15);
this.txtModel_Suffix.TabIndex = 0;
this.txtBLL_Prefix.Location = new Point(0x31, 20);
this.txtBLL_Prefix.Name = "txtBLL_Prefix";
this.txtBLL_Prefix.Size = new Size(0x41, 0x15);
this.txtBLL_Prefix.TabIndex = 0;
this.txtBLL_Suffix.Location = new Point(0xdd, 20);
this.txtBLL_Suffix.Name = "txtBLL_Suffix";
this.txtBLL_Suffix.Size = new Size(0x41, 0x15);
this.txtBLL_Suffix.TabIndex = 0;
this.label4.AutoSize = true;
this.label4.Location = new Point(0x80, 0x18);
this.label4.Name = "label4";
this.label4.Size = new Size(11, 12);
this.label4.TabIndex = 1;
this.label4.Text = "+";
this.lblTabBLL.AutoSize = true;
this.lblTabBLL.Location = new Point(0x99, 0x18);
this.lblTabBLL.Name = "lblTabBLL";
this.lblTabBLL.Size = new Size(0x1d, 12);
this.lblTabBLL.TabIndex = 1;
this.lblTabBLL.Text = "表名";
this.label6.AutoSize = true;
this.label6.Location = new Point(0xc4, 0x18);
this.label6.Name = "label6";
this.label6.Size = new Size(11, 12);
this.label6.TabIndex = 1;
this.label6.Text = "+";
this.label7.AutoSize = true;
this.label7.Location = new Point(0x80, 0x18);
this.label7.Name = "label7";
this.label7.Size = new Size(11, 12);
this.label7.TabIndex = 1;
this.label7.Text = "+";
this.txtDAL_Suffix.Location = new Point(0xdd, 20);
this.txtDAL_Suffix.Name = "txtDAL_Suffix";
this.txtDAL_Suffix.Size = new Size(0x41, 0x15);
this.txtDAL_Suffix.TabIndex = 0;
this.lblTabDAL.AutoSize = true;
this.lblTabDAL.Location = new Point(0x99, 0x18);
this.lblTabDAL.Name = "lblTabDAL";
this.lblTabDAL.Size = new Size(0x1d, 12);
this.lblTabDAL.TabIndex = 1;
this.lblTabDAL.Text = "表名";
this.txtDAL_Prefix.Location = new Point(0x31, 20);
this.txtDAL_Prefix.Name = "txtDAL_Prefix";
this.txtDAL_Prefix.Size = new Size(0x41, 0x15);
this.txtDAL_Prefix.TabIndex = 0;
this.label9.AutoSize = true;
this.label9.Location = new Point(0xc4, 0x18);
this.label9.Name = "label9";
this.label9.Size = new Size(11, 12);
this.label9.TabIndex = 1;
this.label9.Text = "+";
this.radbtn_Same.AutoSize = true;
this.radbtn_Same.Checked = true;
this.radbtn_Same.Location = new Point(0x31, 0x19);
this.radbtn_Same.Name = "radbtn_Same";
this.radbtn_Same.Size = new Size(0x47, 0x10);
this.radbtn_Same.TabIndex = 0;
this.radbtn_Same.TabStop = true;
this.radbtn_Same.Text = "表名不变";
this.radbtn_Same.UseVisualStyleBackColor = true;
this.radbtn_Upper.AutoSize = true;
this.radbtn_Upper.Location = new Point(0x7d, 0x19);
this.radbtn_Upper.Name = "radbtn_Upper";
this.radbtn_Upper.Size = new Size(0x53, 0x10);
this.radbtn_Upper.TabIndex = 0;
this.radbtn_Upper.Text = "表名全大写";
this.radbtn_Upper.UseVisualStyleBackColor = true;
this.radbtn_Lower.AutoSize = true;
this.radbtn_Lower.Location = new Point(0xd5, 0x19);
this.radbtn_Lower.Name = "radbtn_Lower";
this.radbtn_Lower.Size = new Size(0x53, 0x10);
this.radbtn_Lower.TabIndex = 0;
this.radbtn_Lower.Text = "表名全小写";
this.radbtn_Lower.UseVisualStyleBackColor = true;
base.AutoScaleDimensions = new SizeF(6f, 12f);
base.AutoScaleMode = AutoScaleMode.Font;
base.Controls.Add(this.groupBox4);
base.Controls.Add(this.groupBox3);
base.Controls.Add(this.groupBox2);
base.Controls.Add(this.groupBox1);
base.Name = "UcCSNameSet";
this.RightToLeft = RightToLeft.No;
base.Size = new Size(0x17d, 0x111);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
base.ResumeLayout(false);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -