Esempio n. 1
0
        public UcCSNameSet()
        {
            InitializeComponent();

            Maticsoft.CmConfig.ModuleSettings setting = Maticsoft.CmConfig.ModuleConfig.GetSettings();
            txtBLL_Prefix.Text   = setting.BLLPrefix;
            txtBLL_Suffix.Text   = setting.BLLSuffix;
            txtDAL_Prefix.Text   = setting.DALPrefix;
            txtDAL_Suffix.Text   = setting.DALSuffix;
            txtModel_Prefix.Text = setting.ModelPrefix;
            txtModel_Suffix.Text = setting.ModelSuffix;
            switch (setting.TabNameRule.ToLower())
            {
            case "same":
                radbtn_Same.Checked = true;
                break;

            case "lower":
                radbtn_Lower.Checked = true;
                break;

            case "upper":
                radbtn_Upper.Checked = true;
                break;

            case "firstupper":
                radbtn_firstUpper.Checked = true;
                break;

            default:
                radbtn_Same.Checked = true;
                break;
            }
        }
Esempio n. 2
0
        public UcCSSet()
        {
            InitializeComponent();

            setting = Maticsoft.CmConfig.ModuleConfig.GetSettings();
            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;
            }

            #region 加载插件

            cm_daltype       = new DALTypeAddIn("LTP.IBuilder.IBuilderDAL");
            cm_daltype.Title = "DAL";
            groupBox5.Controls.Add(cm_daltype);
            cm_daltype.Location = new System.Drawing.Point(10, 18);
            cm_daltype.SetSelectedDALType(setting.DALType.Trim());

            cm_blltype       = new DALTypeAddIn("LTP.IBuilder.IBuilderBLL");
            cm_blltype.Title = "BLL";
            groupBox5.Controls.Add(cm_blltype);
            cm_blltype.Location = new System.Drawing.Point(10, 42);
            cm_blltype.SetSelectedDALType(setting.BLLType.Trim());

            cm_webtype       = new DALTypeAddIn("LTP.IBuilder.IBuilderWeb");
            cm_webtype.Title = "Web";
            groupBox5.Controls.Add(cm_webtype);
            cm_webtype.Location = new System.Drawing.Point(10, 66);
            cm_webtype.SetSelectedDALType(setting.WebType.Trim());

            #endregion

            txtDbHelperName.Text = setting.DbHelperName;
            txtNamepace.Text     = setting.Namepace;
            txtProjectName.Text  = setting.ProjectName;
            txtProcPrefix.Text   = setting.ProcPrefix;
        }
Esempio n. 3
0
        public OptionFrm(MainForm mainform)
        {
            InitializeComponent();
            mainForm    = mainform;
            appsettings = Maticsoft.CmConfig.AppConfig.GetSettings();
            setting     = Maticsoft.CmConfig.ModuleConfig.GetSettings();

            optionsEnviroments   = new UcOptionsEnviroments();
            optionEditor         = new UcOptionEditor();
            optionsQuerySettings = new UcOptionsQuerySettings();
            optionStartUp        = new UcOptionStartUp(appsettings);//5-1-a-s-p-x
            //ucdbset = new UcDBSet();
            uccsset     = new UcCSSet();
            ucnameset   = new UcCSNameSet();
            ucAddin     = new UcAddInManage();
            ucDatatype  = new UcDatatype();
            ucSysmanage = new UcSysManage();
        }