Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit cf166248
由
lailai.xing
编写于
2025-07-04 09:52:52 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改语言包
1 个父辈
a3879b52
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
37 行增加
和
2 行删除
Common/CodeResourceControl.cs
TheMachine/Form1.cs
TheMachineNView/Form1.cs
Common/CodeResourceControl.cs
查看文件 @
cf16624
...
...
@@ -41,6 +41,7 @@ namespace OnlineStore
var
lngjson
=
JsonHelper
.
SerializeObject
(
LangMap
);
Task
.
Run
(()
=>
{
return
;
try
{
Task
.
Delay
(
10
*
1000
).
Wait
();
...
...
@@ -290,6 +291,8 @@ namespace OnlineStore
private
static
void
PreControlLanaguage
(
Control
partentControl
,
string
class
Name
)
{
string
newStr
=
""
;
//Con_GetTxt(partentControl, out string title);
//string newStr = GetString(GetTextIdStr(className, partentControl.Name), title);
//if (!newStr.Equals(""))
...
...
@@ -306,11 +309,28 @@ namespace OnlineStore
continue
;
}
string
strA
=
""
;
if
(
con
.
Text
.
Contains
(
"IO调试"
))
{
strA
=
con
.
Text
;
}
if
(
con
.
Text
.
Contains
(
"IO Debugging"
))
{
strA
=
con
.
Text
;
}
if
(
Con_GetTxt
(
con
,
out
txt
))
{
newStr
=
GetString
(
GetTextIdStr
(
class
Name
,
con
.
Name
),
txt
);
if
(!
newStr
.
Equals
(
""
))
{
Con_SetTxt
(
con
,
newStr
.
Replace
(
"\\n"
,
"\n"
));
//haslang = true;
}
...
...
@@ -322,7 +342,13 @@ namespace OnlineStore
}
if
(
con
.
Controls
.
Count
>
0
&&
!
haslang
)
{
PreControlLanaguage
(
con
,
class
Name
+
"_"
+
con
.
Name
);
//kmon
if
(!(
con
.
Name
.
Contains
(
"tab_io"
)
||
con
.
Text
.
Contains
(
"tab_axis"
)
||
con
.
Text
.
Contains
(
"tab_store"
)
||
con
.
Text
.
Contains
(
"tab_setting"
)))
{
PreControlLanaguage
(
con
,
class
Name
+
"_"
+
con
.
Name
);
}
}
//Console.WriteLine(con is IList<Component>);
//Console.WriteLine(con is IList<Component>);
...
...
TheMachine/Form1.cs
查看文件 @
cf16624
...
...
@@ -15,6 +15,7 @@ using System.Runtime.Serialization.Formatters.Binary;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
using
static
System
.
Net
.
Mime
.
MediaTypeNames
;
using
static
System
.
Windows
.
Forms
.
VisualStyles
.
VisualStyleElement
.
StartPanel
;
namespace
TheMachine
...
...
@@ -186,7 +187,9 @@ namespace TheMachine
AddForm
(
"tab_setting"
,
crc
.
GetString
(
L
.
tab_setting
,
"相关设置"
),
sc
);
//this.ResumeLayout(true);
//this.PerformLayout();
crc
.
LanguageProcess
(
this
);
//crc.LanguageProcess(this);
}
private
void
T1_Tick
(
object
sender
,
EventArgs
e
)
...
...
@@ -246,6 +249,8 @@ namespace TheMachine
private
void
AddForm
(
string
id
,
string
text
,
UserControl
form
)
{
//GetString(GetTextIdStr(className, id), text);
foreach
(
TabPage
tp
in
tabc
.
TabPages
)
{
if
(
tp
.
Name
==
id
)
...
...
@@ -254,6 +259,7 @@ namespace TheMachine
return
;
}
}
TabPage
lineTabPage
=
new
TabPage
(
text
);
lineTabPage
.
Name
=
id
;
Panel
linePan
=
new
Panel
();
...
...
TheMachineNView/Form1.cs
查看文件 @
cf16624
...
...
@@ -223,6 +223,8 @@ namespace TheMachineNView
List
<
TabPage
>
tabPages
=
new
List
<
TabPage
>();
void
showDebugTabPages
(
bool
show
)
{
if
(
this
.
InvokeRequired
)
{
this
.
Invoke
((
EventHandler
)
delegate
...
...
@@ -243,6 +245,7 @@ namespace TheMachineNView
item
.
Parent
=
null
;
}
}
//kmon
crc
.
LanguageProcess
(
this
);
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论