Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
ed4a45df
Commit
ed4a45df
authored
May 22, 2026
by
段廷瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: 搜索框改为回车触发
parent
78b651f4
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
137 additions
and
96 deletions
+137
-96
.gitignore
.gitignore
+1
-0
wAutoClass.Designer.cs
Tools/UI/wAutoClass.Designer.cs
+1
-1
wAutoClass.cs
Tools/UI/wAutoClass.cs
+8
-4
wDBTableDevelopTools.Designer.cs
Tools/UI/wDBTableDevelopTools.Designer.cs
+1
-1
wModuleManager.Designer.cs
Tools/UI/wModuleManager.Designer.cs
+118
-86
wModuleManager.cs
Tools/UI/wModuleManager.cs
+7
-3
wModuleManager.resx
Tools/UI/wModuleManager.resx
+1
-1
No files found.
.gitignore
View file @
ed4a45df
...
@@ -58,3 +58,4 @@ bin
...
@@ -58,3 +58,4 @@ bin
/AppHome/config/links.xml
/AppHome/config/links.xml
/AppHome/config/List`1.json
/AppHome/config/List`1.json
/Tools/Tools.csproj.user
/Tools/Tools.csproj.user
/Tools/.claude/settings.local.json
Tools/UI/wAutoClass.Designer.cs
View file @
ed4a45df
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
this
.
txtSearch
.
Name
=
"txtSearch"
;
this
.
txtSearch
.
Name
=
"txtSearch"
;
this
.
txtSearch
.
Size
=
new
System
.
Drawing
.
Size
(
168
,
23
);
this
.
txtSearch
.
Size
=
new
System
.
Drawing
.
Size
(
168
,
23
);
this
.
txtSearch
.
TabIndex
=
7
;
this
.
txtSearch
.
TabIndex
=
7
;
this
.
txtSearch
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtSearch_TextChanged
);
this
.
txtSearch
.
KeyDown
+=
new
System
.
Windows
.
Forms
.
KeyEventHandler
(
this
.
txtSearch_KeyDown
);
this
.
txtSearch
.
Enter
+=
new
System
.
EventHandler
(
this
.
txtSearch_Enter
);
this
.
txtSearch
.
Enter
+=
new
System
.
EventHandler
(
this
.
txtSearch_Enter
);
this
.
txtSearch
.
Leave
+=
new
System
.
EventHandler
(
this
.
txtSearch_Leave
);
this
.
txtSearch
.
Leave
+=
new
System
.
EventHandler
(
this
.
txtSearch_Leave
);
//
//
...
...
Tools/UI/wAutoClass.cs
View file @
ed4a45df
...
@@ -21,6 +21,7 @@ namespace Tools.UI
...
@@ -21,6 +21,7 @@ namespace Tools.UI
public
wAutoClass
()
public
wAutoClass
()
{
{
InitializeComponent
();
InitializeComponent
();
new
ToolTip
().
SetToolTip
(
this
.
txtSearch
,
"回车触发搜索"
);
}
}
private
void
tsbDB_Click
(
object
sender
,
EventArgs
e
)
private
void
tsbDB_Click
(
object
sender
,
EventArgs
e
)
...
@@ -60,13 +61,16 @@ namespace Tools.UI
...
@@ -60,13 +61,16 @@ namespace Tools.UI
}
}
private
void
txtSearch_TextChanged
(
object
sender
,
EventArgs
e
)
private
void
txtSearch_KeyDown
(
object
sender
,
KeyEventArgs
e
)
{
if
(
e
.
KeyCode
==
Keys
.
Enter
)
{
{
if
(
string
.
IsNullOrEmpty
(
this
.
tstbLinkString
.
Text
)
||
txtSearch
.
ForeColor
==
Color
.
LightGray
)
if
(
string
.
IsNullOrEmpty
(
this
.
tstbLinkString
.
Text
)
||
txtSearch
.
ForeColor
==
Color
.
LightGray
)
return
;
return
;
this
.
RefrashData
(
false
);
this
.
RefrashData
(
false
);
}
}
}
Boolean
textboxHasText
=
false
;
//判断输入框是否有文本
Boolean
textboxHasText
=
false
;
//判断输入框是否有文本
...
...
Tools/UI/wDBTableDevelopTools.Designer.cs
View file @
ed4a45df
...
@@ -318,7 +318,7 @@
...
@@ -318,7 +318,7 @@
this
.
tsmiAutoSizeColumns
,
this
.
tsmiAutoSizeColumns
,
this
.
tsmiSaveColumnWidth
});
this
.
tsmiSaveColumnWidth
});
this
.
contextMenuStrip1
.
Name
=
"contextMenuStrip1"
;
this
.
contextMenuStrip1
.
Name
=
"contextMenuStrip1"
;
this
.
contextMenuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
1
42
);
this
.
contextMenuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
1
36
);
//
//
// tsmiAddRow
// tsmiAddRow
//
//
...
...
Tools/UI/wModuleManager.Designer.cs
View file @
ed4a45df
This diff is collapsed.
Click to expand it.
Tools/UI/wModuleManager.cs
View file @
ed4a45df
...
@@ -46,6 +46,7 @@ namespace Tools.UI
...
@@ -46,6 +46,7 @@ namespace Tools.UI
public
wModuleManager
()
public
wModuleManager
()
{
{
InitializeComponent
();
InitializeComponent
();
new
ToolTip
().
SetToolTip
(
this
.
tbSearch
,
"回车触发搜索"
);
}
}
private
void
wModuleManager_Load
(
object
sender
,
EventArgs
e
)
private
void
wModuleManager_Load
(
object
sender
,
EventArgs
e
)
{
{
...
@@ -93,7 +94,7 @@ namespace Tools.UI
...
@@ -93,7 +94,7 @@ namespace Tools.UI
this
.
myTreeView1
.
SelectedNode
=
this
.
myTreeView1
.
Nodes
[
0
];
//选中首节点
this
.
myTreeView1
.
SelectedNode
=
this
.
myTreeView1
.
Nodes
[
0
];
//选中首节点
}
}
//模块查询
//模块查询
this
.
tbSearch
.
TextChanged
+=
TbSearch_TextChanged
;
this
.
tbSearch
.
KeyDown
+=
TbSearch_KeyDown
;
//输入模块名称,自动生成字符串ID
//输入模块名称,自动生成字符串ID
this
.
tbName
.
TextChanged
+=
TbName_TextChanged
;
this
.
tbName
.
TextChanged
+=
TbName_TextChanged
;
//功能信息:单元格内容点击,自动复制内容
//功能信息:单元格内容点击,自动复制内容
...
@@ -208,10 +209,13 @@ namespace Tools.UI
...
@@ -208,10 +209,13 @@ namespace Tools.UI
/// </summary>
/// </summary>
/// <param name="sender"></param>
/// <param name="sender"></param>
/// <param name="e"></param>
/// <param name="e"></param>
private
void
TbSearch_TextChanged
(
object
sender
,
EventArgs
e
)
private
void
TbSearch_KeyDown
(
object
sender
,
KeyEventArgs
e
)
{
if
(
e
.
KeyCode
==
Keys
.
Enter
)
{
{
this
.
SetTreeNodeBackColor
(
this
.
myTreeView1
.
Nodes
,
this
.
tbSearch
.
Text
.
Trim
());
this
.
SetTreeNodeBackColor
(
this
.
myTreeView1
.
Nodes
,
this
.
tbSearch
.
Text
.
Trim
());
}
}
}
/// <summary>
/// <summary>
/// (查询)设置树节点背景色
/// (查询)设置树节点背景色
/// </summary>
/// </summary>
...
...
Tools/UI/wModuleManager.resx
View file @
ed4a45df
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADo
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADo
CAAAAk1TRnQBSQFMAgEBAgEAAZ
ABAAGQ
AQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CAAAAk1TRnQBSQFMAgEBAgEAAZ
gBAAGY
AQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment