public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["DB连接管理"]; this.TabText = this.Text; tsbOpenFile.Text = Apq.GlobalObject.UILang["打开(&O)"]; tsbOpenFile.Image = System.Drawing.Image.FromFile(Application.StartupPath + @"\Res\png\File\Open.png"); tsbSave.Text = Apq.GlobalObject.UILang["保存(&S)"]; tsbSelectAll.Text = Apq.GlobalObject.UILang["全选(&A)"]; tssbSlts.Text = Apq.GlobalObject.UILang["批量设置(&E)"]; tsmiSltsUserId.Text = Apq.GlobalObject.UILang["登录名"]; tsmiSltsPwdD.Text = Apq.GlobalObject.UILang["密码"]; tssbCreateCSFile.Text = Apq.GlobalObject.UILang["生成文件(&G)"]; dBCIDDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["编号"]; dBCNameDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["连接名"]; computerIDDataGridViewComBoxColumn.HeaderText = Apq.GlobalObject.UILang["服务器"]; dBIIDDataGridViewComboBoxColumn.HeaderText = Apq.GlobalObject.UILang["数据库实例"]; dBNameDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["数据库名"]; dBCUseTypeDataGridViewComboBoxColumn.HeaderText = Apq.GlobalObject.UILang["使用类型"]; userIdDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["登录名"]; pwdDDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["密码"]; useTrustedDataGridViewCheckBoxColumn.HeaderText = Apq.GlobalObject.UILang["使用信任连接"]; mirrorDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["镜像"]; optionDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["选项"]; sfd.Filter = Apq.GlobalObject.UILang["DBC文件(*.res)|*.res|所有文件(*.*)|*.*"]; ofd.Filter = Apq.GlobalObject.UILang["DBC文件(*.res)|*.res|所有文件(*.*)|*.*"]; }
public void InitValue(Apq.Config.ConfigChain cfg) { if (!Apq.Convert.HasMean(cbCFolder.Text)) { cbCFolder.Text = cfg[this.GetType(), "CFolder"]; } }
public override void SetUILang(Apq.UILang.UILang UILang) { Text = Apq.GlobalObject.UILang["脚本生成"] + " - " + ++FormCount; TabText = Text; base.SetUILang(UILang); }
public override void SetUILang(Apq.UILang.UILang UILang) { Text = Apq.GlobalObject.UILang["脚本生成"]; TabText = Text; tsbConnectDB.Text = Apq.GlobalObject.UILang["连接"]; tsmiRefresh.Text = Apq.GlobalObject.UILang["刷新(&F)"]; tssbSelect.Text = Apq.GlobalObject.UILang["选择"]; tsmiSelectAll.Text = Apq.GlobalObject.UILang["全选(&A)"]; tsmiSelectReverse.Text = Apq.GlobalObject.UILang["反选(&R)"]; tsmiSelectTable.Text = Apq.GlobalObject.UILang["表(&T)"]; tsmiSelectProc.Text = Apq.GlobalObject.UILang["存储过程(&P)"]; tsmiSelectTrigger.Text = Apq.GlobalObject.UILang["触发器(&I)"]; tssbGenSql.Text = Apq.GlobalObject.UILang["生成"]; tsmiMeta.Text = Apq.GlobalObject.UILang["元数据脚本(&M)"]; tsmiData.Text = Apq.GlobalObject.UILang["初始化数据(&D)"]; // 列 checkStateDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["选择"]; objectTypeDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["类型"]; schemaNameDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["架构"]; objectNameDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["名称"]; schemaNameDataGridViewTextBoxColumn1.HeaderText = Apq.GlobalObject.UILang["架构"]; tableNameDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["表名"]; primaryKeysDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["数据Key"]; sfdMeta.Filter = Apq.GlobalObject.UILang["SQL 文件(*.sql)|*.sql|所有文件(*.*)|*.*"]; }
public override void SetUILang(Apq.UILang.UILang UILang) { #region 菜单 tsmiFile.Text = Apq.GlobalObject.UILang["主菜单(&M)"]; tsmiNew.Text = Apq.GlobalObject.UILang["新建(&N)"]; tsmiOpen.Text = Apq.GlobalObject.UILang["打开(&O)"]; tsmiSave.Text = Apq.GlobalObject.UILang["保存(&S)"]; tsmiSaveAs.Text = Apq.GlobalObject.UILang["另存为(&A)"]; tsmiExit.Text = Apq.GlobalObject.UILang["退出(&X)"]; tsmiTool.Text = Apq.GlobalObject.UILang["工具(&T)"]; tsmiOption.Text = Apq.GlobalObject.UILang["选项(&O)"]; tsmiUILang.Text = Apq.GlobalObject.UILang["语言(&L)"]; tsmiWindow.Text = Apq.GlobalObject.UILang["窗口(&W)"]; tsmiCloseAll.Text = Apq.GlobalObject.UILang["全部关闭(&L)"]; tsmiHelp.Text = Apq.GlobalObject.UILang["帮助(&H)"]; tsmiSN.Text = Apq.GlobalObject.UILang["注册信息(&R)"]; tsmiAbout.Text = Apq.GlobalObject.UILang["关于(&A)"]; #endregion this.tsmiNew.Image = System.Drawing.Image.FromFile(Application.StartupPath + @"\Res\png\File\New.png"); this.tsmiOpen.Image = System.Drawing.Image.FromFile(Application.StartupPath + @"\Res\png\File\Open.png"); this.tsmiSave.Image = System.Drawing.Image.FromFile(Application.StartupPath + @"\Res\png\File\Save.png"); }
public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["数据库列表"]; this.TabText = this.Text; tsbSave.Text = Apq.GlobalObject.UILang["保存(&S)"]; tsbSelectAll.Text = Apq.GlobalObject.UILang["全选(&A)"]; tsbReverse.Text = Apq.GlobalObject.UILang["反选(&V)"]; tsbExpandAll.Text = Apq.GlobalObject.UILang["全部收起(&D)"]; tssbSlts.Text = Apq.GlobalObject.UILang["批量设置(&E)"]; tsmiSltsUserId.Text = Apq.GlobalObject.UILang["登录名"]; tsmiSltsPwdD.Text = Apq.GlobalObject.UILang["密码"]; tsmiSltsPort.Text = Apq.GlobalObject.UILang["端口"]; tsbCreateFile.Text = Apq.GlobalObject.UILang["生成文件(&G)"]; tsmiTestOpen.Text = Apq.GlobalObject.UILang["测试(&T)"]; tsmiAdd.Text = Apq.GlobalObject.UILang["添加(&A)"]; tsmiDel.Text = Apq.GlobalObject.UILang["删除(&D)"]; columnHeader1.Text = Apq.GlobalObject.UILang["名称"]; columnHeader8.Text = Apq.GlobalObject.UILang["类型"]; columnHeader2.Text = Apq.GlobalObject.UILang["服务器"]; columnHeader7.Text = Apq.GlobalObject.UILang["DBMS"]; columnHeader3.Text = Apq.GlobalObject.UILang["登录名"]; columnHeader4.Text = Apq.GlobalObject.UILang["密码"]; columnHeader5.Text = Apq.GlobalObject.UILang["IP"]; columnHeader6.Text = Apq.GlobalObject.UILang["端口"]; sfd.Filter = Apq.GlobalObject.UILang["DBC文件(*.res)|*.res|所有文件(*.*)|*.*"]; }
/// <summary> /// 设置界面语言值 /// </summary> public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["连接到数据库"]; this.TabText = this.Text; #region MySql tabPage1.Text = Apq.GlobalObject.UILang["MySql"]; label3.Text = Apq.GlobalObject.UILang["名称:"]; label1.Text = Apq.GlobalObject.UILang["服务器:"]; label2.Text = Apq.GlobalObject.UILang["用户名:"]; label4.Text = Apq.GlobalObject.UILang["密码:"]; label5.Text = Apq.GlobalObject.UILang["端口:"]; label6.Text = Apq.GlobalObject.UILang["数据库列表:"]; cbMySqlSavePwd.Text = Apq.GlobalObject.UILang["保存密码"]; btnMySqlSaveName.Text = Apq.GlobalObject.UILang["保存(&S)"]; btnMySqlRefresh.Text = Apq.GlobalObject.UILang["刷新(&F)"]; btnMySqlConfirm.Text = Apq.GlobalObject.UILang["确定(&O)"]; btnMySqlCancel.Text = Apq.GlobalObject.UILang["取消(&C)"]; btnMySqlTest.Text = Apq.GlobalObject.UILang["测试连接(&T)"]; #endregion #region MsSql tabPage2.Text = Apq.GlobalObject.UILang["MsSql"]; btnMsSqlConfirm.Text = Apq.GlobalObject.UILang["确定(&O)"]; btnMsSqlCancel.Text = Apq.GlobalObject.UILang["取消(&C)"]; btnMsSqlTest.Text = Apq.GlobalObject.UILang["测试连接(&T)"]; #endregion base.SetUILang(UILang); }
/// <summary> /// 设置界面语言值 /// </summary> /// <param name="UILang"></param> public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["错误列表"]; this.TabText = this.Text; #region 工具栏 tsbType.Text = Apq.GlobalObject.UILang["类型"]; tsmiTypeError.Text = Apq.GlobalObject.UILang["错误"]; tsmiTypeWarn.Text = Apq.GlobalObject.UILang["警告"]; tsmiTypeTrace.Text = Apq.GlobalObject.UILang["跟踪"]; tsmiTypeInfo.Text = Apq.GlobalObject.UILang["信息"]; tsbSeverity.Text = Apq.GlobalObject.UILang["严重度"]; #endregion #region 列头 col_InTime.HeaderText = Apq.GlobalObject.UILang["时间"]; colType.HeaderText = Apq.GlobalObject.UILang["类型"]; colSeverity.HeaderText = Apq.GlobalObject.UILang["严重度"]; colTitle.HeaderText = Apq.GlobalObject.UILang["标题"]; colMsg.HeaderText = Apq.GlobalObject.UILang["内容"]; colAlarmGroupID.HeaderText = Apq.GlobalObject.UILang["报警"]; colState.HeaderText = Apq.GlobalObject.UILang["状态"]; #endregion base.SetUILang(UILang); }
public override global::System.Data.DataSet Clone() { Apq cln = ((Apq)(base.Clone())); cln.InitVars(); cln.SchemaSerializationMode = this.SchemaSerializationMode; return(cln); }
public void Confirm(Apq.Config.ConfigChain cfg) { if (Apq.Convert.HasMean(cbCFolder.Text)) { cfg[this.GetType(), "CFolder"] = cbCFolder.Text; } cfg.UserConfig.Save(); }
public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["选项"]; label1.Text = Apq.GlobalObject.UILang["加解密密码(至少9个字符)"]; btnShowPwd.Text = Apq.GlobalObject.UILang["显示密码"]; btnConfirm.Text = Apq.GlobalObject.UILang["确定"]; btnCancel.Text = Apq.GlobalObject.UILang["取消"]; }
/// <summary> /// 检测是否登录 /// </summary> /// <param name="stReturn"></param> public static bool CheckLogin(ref STReturn stReturn, Apq.Web.SessionState.HttpSessionState ApqSession) { if (ApqSession.User == null || ApqSession.User.Rows.Count == 0) { stReturn.NReturn = -1; stReturn.ExMsg = "请登录"; return false; } return true; }
/// <summary> /// 检测是否登录 /// </summary> /// <param name="stReturn"></param> public static bool CheckLogin(ref Apq.STReturn stReturn, Apq.Web.SessionState.HttpSessionState ApqSession) { if (ApqSession.UserID == 0) { stReturn.NReturn = -1; stReturn.ExMsg = "请登录"; return false; } return true; }
public override void SetUILang(Apq.UILang.UILang UILang) { tssbSelect.Text = Apq.GlobalObject.UILang["选择(&L)"]; tsbSelectAll.Text = Apq.GlobalObject.UILang["全选(&A)"]; tsbReverse.Text = Apq.GlobalObject.UILang["反选(&S)"]; tsbExpandAll.Text = Apq.GlobalObject.UILang["全部收起(&D)"]; tsbFail.Text = Apq.GlobalObject.UILang["失败(&F)"]; tsbResult.Text = Apq.GlobalObject.UILang["结果(&T)"]; }
/// <summary> /// 设置界面语言(由子类实现具体方法,基类Load事件自动调用) /// </summary> public virtual void SetUILang(Apq.UILang.UILang UILang) { foreach (ImeForm win in MdiChildren) { if (win != null) { win.SetUILang(UILang); } } }
/// <summary> /// 检测是否管理员 /// </summary> /// <param name="stReturn"></param> public static bool CheckAdmin(ref Apq.STReturn stReturn, Apq.Web.SessionState.HttpSessionState ApqSession) { if (!ApqSession.IsAdmin) { stReturn.NReturn = -1; stReturn.ExMsg = "只有管理员才能访问该页面"; return false; } return true; }
public static bool CheckPwdExpire(ref Apq.STReturn stReturn, Apq.Web.SessionState.HttpSessionState ApqSession) { /* if (Convert.ToDateTime(ApqSession.User.Rows[0]["LoginPwdExpire"]) > DateTime.Now) { stReturn.NReturn = -1 stReturn.ExMsg = "密码已过期,请修改密码"; return false; } */ return true; }
public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["服务器列表"]; this.TabText = this.Text; tsbSave.Text = Apq.GlobalObject.UILang["保存(&S)"]; tsbInput.Text = Apq.GlobalObject.UILang["导入(&I)"]; computerIDDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["编号"]; computerNameDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["名称"]; computerTypeDataGridViewTextBoxColumn.HeaderText = Apq.GlobalObject.UILang["类型"]; }
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { Apq ds = new Apq(); global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); any.Namespace = ds.Namespace; sequence.Items.Add(any); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext();) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte()));) { ; } if ((s1.Position == s1.Length)) { return(type); } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return(type); }
public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["随机串生成器"]; this.TabText = this.Text; label1.Text = Apq.GlobalObject.UILang["长度"]; label2.Text = Apq.GlobalObject.UILang["个数"]; label3.Text = Apq.GlobalObject.UILang["范围"]; btnGo.Text = Apq.GlobalObject.UILang["生成"]; btnCopy.Text = Apq.GlobalObject.UILang["复制"]; }
/// <summary> /// 检测是否登录 /// </summary> /// <param name="stReturn"></param> public static bool CheckLogin(ref Apq.STReturn stReturn, DinnerSession ApqSession) { if (ApqSession.Employee.EmID == 0) { stReturn.NReturn = -1; stReturn.ExMsg = "请登录"; stReturn.POuts.Add("Login.aspx"); return false; } stReturn.NReturn = 1; return true; }
public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["RSA密钥对"]; this.TabText = this.Text; cbContainsPKey.Text = Apq.GlobalObject.UILang["包含私钥"]; btnCreate.Text = Apq.GlobalObject.UILang["创建"]; btnSaveUToFile.Text = Apq.GlobalObject.UILang["保存公钥"]; btnSavePToFile.Text = Apq.GlobalObject.UILang["保存私钥"]; sfdU.Filter = Apq.GlobalObject.UILang["XML文件(*.xml)|*.xml|所有文件(*.*)|*.*"]; sfdP.Filter = Apq.GlobalObject.UILang["XML文件(*.xml)|*.xml|所有文件(*.*)|*.*"]; }
/// <summary> /// 检测是否管理员 /// </summary> /// <param name="stReturn"></param> public static bool CheckAdmin(ref STReturn stReturn, Apq.Web.SessionState.HttpSessionState ApqSession) { if (!CheckPwdExpire(ref stReturn, ApqSession)) { return false; } if (!Convert.ToBoolean(ApqSession.User.Rows[0]["IsAdmin"])) { stReturn.NReturn = -1; stReturn.ExMsg = "非管理员不能使用该功能"; return false; } return true; }
public void InitValue(Apq.Config.ConfigChain cfg) { if (!Apq.Convert.HasMean(txtDBName.Text)) { txtDBName.Text = cfg[this.GetType(), "DBName"]; txtServerName.Text = cfg[this.GetType(), "ServerName"]; txtUserId.Text = cfg[this.GetType(), "UserId"]; string PwdC = cfg[this.GetType(), "Pwd"]; if (!string.IsNullOrEmpty(PwdC)) { string PwdD = Apq.Security.Cryptography.DESHelper.DecryptString(PwdC, GlobalObject.RegConfigChain["Crypt", "DESKey"], GlobalObject.RegConfigChain["Crypt", "DESIV"]); txtPwd.Text = PwdD; } } }
public override void SetUILang(Apq.UILang.UILang UILang) { #region 工具栏 tsbOpen.Text = Apq.GlobalObject.UILang["打开(&O)"]; tsbSave.Text = Apq.GlobalObject.UILang["保存(&S)"]; tsbSaveAs.Text = Apq.GlobalObject.UILang["另存为(&A)"]; tsddbView.Text = Apq.GlobalObject.UILang["视图(&V)"]; tsmiDBI.Text = Apq.GlobalObject.UILang["数据库列表(&L)"]; tsmiOut.Text = Apq.GlobalObject.UILang["输出(&O)"]; tsmiErrList.Text = Apq.GlobalObject.UILang["错误列表(&E)"]; #endregion this.tsbOpen.Image = System.Drawing.Image.FromFile(Application.StartupPath + @"\Res\png\File\Open.png"); this.tsbSave.Image = System.Drawing.Image.FromFile(Application.StartupPath + @"\Res\png\File\Save.png"); }
public void Confirm(Apq.Config.ConfigChain cfg) { if (Apq.Convert.HasMean(txtDBName.Text)) { cfg[this.GetType(), "DBName"] = txtDBName.Text.Trim(); cfg[this.GetType(), "ServerName"] = txtServerName.Text.Trim(); cfg[this.GetType(), "UserId"] = txtUserId.Text.Trim(); string PwdD = txtPwd.Text; if (!string.IsNullOrEmpty(PwdD)) { string PwdC = Apq.Security.Cryptography.DESHelper.EncryptString(PwdD, GlobalObject.RegConfigChain["Crypt", "DESKey"], GlobalObject.RegConfigChain["Crypt", "DESIV"]); cfg[this.GetType(), "Pwd"] = PwdC; } } cfg.UserConfig.Save(); }
/// <summary> /// 设置界面语言值 /// </summary> /// <param name="UILang"></param> public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["语言设置"]; this.TabText = this.Text; #region 工具栏 tsbSave.Text = Apq.GlobalObject.UILang["保存(&S)"]; tsbCur.Text = Apq.GlobalObject.UILang["当前(&U)"]; tsbApply.Text = Apq.GlobalObject.UILang["应用(&A)"]; #endregion #region 列头 col1.HeaderText = Apq.GlobalObject.UILang["原文"]; col2.HeaderText = Apq.GlobalObject.UILang["中文"]; #endregion base.SetUILang(UILang); }
public override void SetUILang(Apq.UILang.UILang UILang) { this.Text = Apq.GlobalObject.UILang["DB连接加解密"]; this.TabText = this.Text; tabPage1.Text = Apq.GlobalObject.UILang["文件"]; label3.Text = Apq.GlobalObject.UILang["原始文件"]; label4.Text = Apq.GlobalObject.UILang["加密文件"]; btnEncryptFile.Text = Apq.GlobalObject.UILang["加密↓"]; btnDecryptFile.Text = Apq.GlobalObject.UILang["解密↑"]; tabPage2.Text = Apq.GlobalObject.UILang["字符串"]; btnEncryptString.Text = Apq.GlobalObject.UILang["加密↓"]; btnDecryptString.Text = Apq.GlobalObject.UILang["解密↑"]; ofdDFile.Filter = Apq.GlobalObject.UILang["XML文件(*.xml)|*.xml|所有文件(*.*)|*.*"]; ofdEFile.Filter = Apq.GlobalObject.UILang["DBC文件(*.res)|*.res|所有文件(*.*)|*.*"]; }
/// <summary> /// 检测密码过期 /// </summary> /// <param name="stReturn"></param> public static bool CheckPwdExpire(ref Apq.STReturn stReturn, DinnerSession ApqSession) { if (!CheckLogin(ref stReturn, ApqSession)) { return false; } /* if (Convert.ToDateTime(ApqSession.User.Rows[0]["LoginPwdExpire"]) > DateTime.Now) { stReturn.NReturn = 2; stReturn.ExMsg = "密码已过期,请修改密码"; stReturn.POuts.Add("../User/main.aspx?tp=ChgPwd"); return false; } */ stReturn.NReturn = 1; return true; }
public override void SetUILang(Apq.UILang.UILang UILang) { #region 菜单 tsmiFile.Text = Apq.GlobalObject.UILang["文件(&F)"]; tsmiExit.Text = Apq.GlobalObject.UILang["退出(&X)"]; tsmiTool.Text = Apq.GlobalObject.UILang["工具(&T)"]; tsmiOption.Text = Apq.GlobalObject.UILang["选项(&O)"]; tsmiUILang.Text = Apq.GlobalObject.UILang["语言(&L)"]; tsmiSqlGen.Text = Apq.GlobalObject.UILang["脚本生成(&G)"]; tsmiFSRename.Text = Apq.GlobalObject.UILang["批量重命名(&H)"]; tsmiWindow.Text = Apq.GlobalObject.UILang["窗口(&W)"]; tsmiCloseAll.Text = Apq.GlobalObject.UILang["全部关闭(&L)"]; tsmiHelp.Text = Apq.GlobalObject.UILang["帮助(&H)"]; tsmiSN.Text = Apq.GlobalObject.UILang["注册信息(&R)"]; tsmiAbout.Text = Apq.GlobalObject.UILang["关于(&A)"]; #endregion }
public override void SetUILang(Apq.UILang.UILang UILang) { Text = Apq.GlobalObject.UILang["文本文件编码转换"] + " - " + ++FormCount; TabText = Text; groupBox1.Text = Apq.GlobalObject.UILang["读取参数"]; label3.Text = Apq.GlobalObject.UILang["原始编码:"]; label2.Text = Apq.GlobalObject.UILang["默认编码:"]; label5.Text = Apq.GlobalObject.UILang["文件类型:"]; label4.Text = Apq.GlobalObject.UILang["自动检测无法确定编码时使用默认编码读取原始文件"]; cbRecursive.Text = Apq.GlobalObject.UILang["包含子目录"]; groupBox2.Text = Apq.GlobalObject.UILang["转换参数"]; label6.Text = Apq.GlobalObject.UILang["目标编码:"]; label1.Text = Apq.GlobalObject.UILang["重命名:"]; rbKeep.Text = Apq.GlobalObject.UILang["原名"]; rbEncodeName.Text = Apq.GlobalObject.UILang["原名_编码"]; rbCustomer.Text = Apq.GlobalObject.UILang["原名_自定义"]; tsbRefresh.Text = Apq.GlobalObject.UILang["刷新(&F)"]; btnTrans.Text = Apq.GlobalObject.UILang["开始转换(&T)"]; }
public override void SetUILang(Apq.UILang.UILang UILang) { Text = Apq.GlobalObject.UILang["批量重命名"] + " - " + ++FormCount; TabText = Text; groupBox1.Text = Apq.GlobalObject.UILang["查找和替换"]; label3.Text = Apq.GlobalObject.UILang["查找串:"]; label6.Text = Apq.GlobalObject.UILang["替换为:"]; label2.Text = Apq.GlobalObject.UILang["匹配方式:"]; label5.Text = Apq.GlobalObject.UILang["文件类型:"]; label4.Text = Apq.GlobalObject.UILang["两种方式均为匹配整个查找串"]; cbContainsFolder.Text = Apq.GlobalObject.UILang["包含文件夹"]; cbRecursive.Text = Apq.GlobalObject.UILang["包含子目录"]; cbContainsFileExt.Text = Apq.GlobalObject.UILang["包含文件扩展名"]; tsbRefresh.Text = Apq.GlobalObject.UILang["刷新(&F)"]; btnFind.Text = Apq.GlobalObject.UILang["查找(&F)"]; btnTrans.Text = Apq.GlobalObject.UILang["开始替换(&H)"]; cbMatchType.Items[0] = Apq.GlobalObject.UILang["普通"]; cbMatchType.Items[1] = Apq.GlobalObject.UILang["正则表达式"]; }