private void SetFormConfig(string servername) { this.dbset = DbConfig.GetSetting(servername); this.txtNameSpace.Text = this.dbset.Namepace; this.txtNameSpace2.Text = this.dbset.Folder; this.cm_daltype = new DALTypeAddIn("Maticsoft.IBuilder.IBuilderDALMTran"); this.cm_daltype.Title = "DAL"; this.groupBox3.Controls.Add(this.cm_daltype); this.cm_daltype.Location = new Point(30, 70); this.cm_daltype.SetSelectedDALType(this.dbset.DALType.Trim()); this.tabControl1.SelectedIndex = 0; }
private void SetFormConfig() { this.panel1.Height = 150;//设置字段浏览窗体高度 radbtn_Type_Click(null, null); setting = LTP.CmConfig.ModuleConfig.GetSettings(); txtProjectName.Text = setting.ProjectName; txtNameSpace.Text = setting.Namepace; txtNameSpace2.Text = setting.Folder; txtProcPrefix.Text = setting.ProcPrefix; switch (setting.AppFrame) { case "One": radbtn_Frame_One.Checked = true; break; case "S3": radbtn_Frame_S3.Checked = true; break; case "F3": radbtn_Frame_F3.Checked = true; break; } radbtn_Type_Click(null, null); radbtn_Frame_Click(null, null); radbtn_F3_Click(null, null); #region 加载插件 //cm_daltype = new DALTypeAddIn(); cm_daltype = new DALTypeAddIn("LTP.IBuilder.IBuilderDAL"); cm_daltype.Title = "DAL"; groupBox_DALType.Controls.Add(cm_daltype); cm_daltype.Location = new System.Drawing.Point(30, 18); cm_daltype.SetSelectedDALType(setting.DALType.Trim()); cm_blltype = new DALTypeAddIn("LTP.IBuilder.IBuilderBLL"); cm_blltype.Title = "BLL"; groupBox_DALType.Controls.Add(cm_blltype); cm_blltype.Location = new System.Drawing.Point(30, 18); cm_blltype.SetSelectedDALType(setting.BLLType.Trim()); cm_webtype = new DALTypeAddIn("LTP.IBuilder.IBuilderWeb"); cm_webtype.Title = "Web"; groupBox_DALType.Controls.Add(cm_webtype); cm_webtype.Location = new System.Drawing.Point(30, 18); cm_webtype.SetSelectedDALType(setting.WebType.Trim()); #endregion this.tabControl1.SelectedIndex = 0; }
NameRule namerule = new NameRule();//类命名规则 private void InitializeForm() { this.list_KeyField.Height = 22; this.codeview = new UcCodeView(); this.tabPage2.Controls.Add(this.codeview); this.SetListViewMenu("colum"); this.CreatView(); this.panel1.Height = 150; this.cm_daltype = new DALTypeAddIn("Maticsoft.IBuilder.IBuilderDAL"); this.cm_daltype.Title = "DAL"; this.groupBox_DALType.Controls.Add(this.cm_daltype); this.cm_daltype.Location = new System.Drawing.Point(30, 13); this.cm_blltype = new DALTypeAddIn("Maticsoft.IBuilder.IBuilderBLL"); this.cm_blltype.Title = "BLL"; this.groupBox_DALType.Controls.Add(this.cm_blltype); this.cm_blltype.Location = new System.Drawing.Point(30, 13); this.cm_webtype = new DALTypeAddIn("Maticsoft.IBuilder.IBuilderWeb"); this.cm_webtype.Title = "Web"; this.groupBox_DALType.Controls.Add(this.cm_webtype); this.cm_webtype.Location = new System.Drawing.Point(30, 13); this.tabControl1.SelectedIndex = 0; }