Skip to content

Commit 8225a57

Browse files
committed
修复换行符问题,修复退出卡顿问题 - 20250205
1 parent 0f23377 commit 8225a57

File tree

12 files changed

+612
-610
lines changed

12 files changed

+612
-610
lines changed

README.md

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
1-
<h1 align="center">
2-
<a href="https://github.com/cjhdevact/TimeControl">TimeControl - 时间小工具</a>
3-
</h1>
4-
5-
## 关于本项目
6-
7-
这是一个支持在电脑上随时查看当前时间的小工具。本软件可以安装在大屏上(例如教学大屏),也可以安装在普通电脑上。
8-
9-
## 功能
10-
11-
本程序支持的功能有:
12-
13-
- [x] 显示时间(基础功能)
14-
- [x] 深浅色模式
15-
- [x] 多种主题(可以自定义)
16-
- [x] 自定义时间显示格式
17-
- [x] 支持通过组策略配置策略
18-
- [x] 支持保存你的设置
19-
- [x] 适配DPI缩放(适配高分屏)
20-
- [x] 其它一些功能。它们正在等待被你发现……
21-
22-
## 下载
23-
24-
转到[发布页](https://github.com/cjhdevact/TimeControl/releases/latest)下载程序或源代码。
25-
26-
早期版本的源代码也在发布页里。
27-
28-
## 数字签名
29-
30-
本程序使用了自签证书进行了签名
31-
32-
证书信息:
33-
```
34-
Name: CJH Root Certificate
35-
Create: ‎2024‎年‎12‎月‎27‎日 20:42:16
36-
Expires: ‎2150‎年‎12‎月‎31‎日 0:00:003e5
37-
MD5: 0bc507db70947e57ddd81bec63b581d9
38-
SHA256: d2d67c8ebea3cc954c7ee0e94f5f45537dde7709053ca9e89f352fda60283
39-
Key fingerprint (SHA1): 73b80a8d0ba3f662b575f2fc0b78612469e22e59
40-
KeyID: d929e453f645017190dac5001a736a4d
41-
Certificate SerialNumber: dbde77418068d5a34b2064626a12ecde
42-
Key Type: md5RSA
43-
```
44-
45-
你可以在[这里](Src/TimeControl/files/rootcert.cer)下载证书来验证程序完整性。
46-
47-
## 程序截图
48-
49-
主程序界面(浅色)
50-
51-
![主程序界面(浅色)](Assets/MainUI.png)
52-
53-
主程序界面(深色)
54-
55-
![主程序界面(深色)](Assets/MainUIDark.png)
56-
57-
设置界面
58-
59-
![设置界面](Assets/SettingUI.png)
60-
61-
## 开源说明
62-
63-
在修改和由本仓库代码衍生的代码中需要说明“基于 TimeControl 开发”
64-
65-
## 相关项目
66-
67-
[CountDownControl](https://github.com/cjhdevact/CountDownControl) - 倒计时小工具,支持高度自定义的倒计时小工具
68-
69-
[TimeControlAero](https://github.com/cjhdevact/TimeControlAero) - 时间小工具Aero版(开发中)
70-
71-
------------
72-
1+
<h1 align="center">
2+
<a href="https://github.com/cjhdevact/TimeControl">TimeControl - 时间小工具</a>
3+
</h1>
4+
5+
## 关于本项目
6+
7+
这是一个支持在电脑上随时查看当前时间的小工具。本软件可以安装在大屏上(例如教学大屏),也可以安装在普通电脑上。
8+
9+
## 功能
10+
11+
本程序支持的功能有:
12+
13+
- [x] 显示时间(基础功能)
14+
- [x] 深浅色模式
15+
- [x] 多种主题(可以自定义)
16+
- [x] 自定义时间显示格式
17+
- [x] 支持通过组策略配置策略
18+
- [x] 支持保存你的设置
19+
- [x] 适配DPI缩放(适配高分屏)
20+
- [x] 其它一些功能。它们正在等待被你发现……
21+
22+
## 下载
23+
24+
转到[发布页](https://github.com/cjhdevact/TimeControl/releases/latest)下载程序或源代码。
25+
26+
早期版本的源代码也在发布页里。
27+
28+
## 数字签名
29+
30+
本程序使用了自签证书进行了签名
31+
32+
证书信息:
33+
```
34+
Name: CJH Root Certificate
35+
Create: ‎2024‎年‎12‎月‎27‎日 20:42:16
36+
Expires: ‎2150‎年‎12‎月‎31‎日 0:00:003e5
37+
MD5: 0bc507db70947e57ddd81bec63b581d9
38+
SHA256: d2d67c8ebea3cc954c7ee0e94f5f45537dde7709053ca9e89f352fda60283
39+
Key fingerprint (SHA1): 73b80a8d0ba3f662b575f2fc0b78612469e22e59
40+
KeyID: d929e453f645017190dac5001a736a4d
41+
Certificate SerialNumber: dbde77418068d5a34b2064626a12ecde
42+
Key Type: md5RSA
43+
```
44+
45+
你可以在[这里](Src/TimeControl/files/rootcert.cer)下载证书来验证程序完整性。
46+
47+
## 程序截图
48+
49+
主程序界面(浅色)
50+
51+
![主程序界面(浅色)](Assets/MainUI.png)
52+
53+
主程序界面(深色)
54+
55+
![主程序界面(深色)](Assets/MainUIDark.png)
56+
57+
设置界面
58+
59+
![设置界面](Assets/SettingUI.png)
60+
61+
## 开源说明
62+
63+
在修改和由本仓库代码衍生的代码中需要说明“基于 TimeControl 开发”
64+
65+
## 相关项目
66+
67+
[CountDownControl](https://github.com/cjhdevact/CountDownControl) - 倒计时小工具,支持高度自定义的倒计时小工具
68+
69+
[TimeControlAero](https://github.com/cjhdevact/TimeControlAero) - 时间小工具Aero版(开发中)
70+
71+
------------
72+
7373
本程序基于 `GPL-3.0` 授权。

Src/TimeControl.suo

0 Bytes
Binary file not shown.

Src/TimeControl/Form2.vb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ errcode:
456456
If aa = 1 Then
457457
Form1.Timer1.Enabled = False
458458
Form1.Timer2.Enabled = False
459-
End
459+
'End
460+
Application.Exit()
460461
End If
461462
End Sub
462463

@@ -1702,14 +1703,15 @@ errcode:
17021703

17031704
Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click
17041705
Dim bb As Integer = 0
1705-
If (MessageBox.Show("确定重启时间小工具吗?", "时间小工具", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) = DialogResult.Yes) Then
1706+
If MessageBox.Show("确定重启时间小工具吗?", "时间小工具", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) = DialogResult.Yes Then
17061707
bb = 1
17071708
End If
17081709
If bb = 1 Then
17091710
Form1.Timer1.Enabled = False
17101711
Form1.Timer2.Enabled = False
17111712
System.Diagnostics.Process.Start(Application.ExecutablePath)
1712-
End
1713+
'End
1714+
Application.Exit()
17131715
End If
17141716
End Sub
17151717
End Class

Src/TimeControl/My Project/Application.Designer.vb

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3-
<MySubMain>true</MySubMain>
4-
<MainForm>Form1</MainForm>
5-
<SingleInstance>true</SingleInstance>
6-
<ShutdownMode>0</ShutdownMode>
7-
<EnableVisualStyles>true</EnableVisualStyles>
8-
<AuthenticationMode>0</AuthenticationMode>
9-
<SaveMySettingsOnExit>false</SaveMySettingsOnExit>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<MySubMain>true</MySubMain>
4+
<MainForm>Form1</MainForm>
5+
<SingleInstance>true</SingleInstance>
6+
<ShutdownMode>0</ShutdownMode>
7+
<EnableVisualStyles>true</EnableVisualStyles>
8+
<AuthenticationMode>0</AuthenticationMode>
9+
<SaveMySettingsOnExit>false</SaveMySettingsOnExit>
1010
</MyApplicationData>
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
Imports System
2-
Imports System.Reflection
3-
Imports System.Runtime.InteropServices
4-
5-
' 有关程序集的常规信息通过下列特性集
6-
' 控制。更改这些特性值可修改
7-
' 与程序集关联的信息。
8-
9-
' 查看程序集特性的值
10-
11-
<Assembly: AssemblyTitle("时间小工具")>
12-
<Assembly: AssemblyDescription("时间小工具")>
13-
<Assembly: AssemblyCompany("CJH")>
14-
<Assembly: AssemblyProduct("时间小工具")>
15-
<Assembly: AssemblyCopyright("Copyright © 2022-2025 CJH. All Rights Reserved.")>
16-
<Assembly: AssemblyTrademark("")>
17-
18-
<Assembly: ComVisible(False)>
19-
20-
'如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
21-
<Assembly: Guid("3715c34f-ba2d-4c69-9d7d-c7c2be189948")>
22-
23-
' 程序集的版本信息由下面四个值组成:
24-
'
25-
' 主版本
26-
' 次版本
27-
' 内部版本号
28-
' 修订号
29-
'
30-
' 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
31-
' 方法是按如下所示使用“*”:
32-
' <Assembly: AssemblyVersion("1.0.*")>
33-
34-
<Assembly: AssemblyVersion("1.1.24.25021")>
35-
<Assembly: AssemblyFileVersion("1.1.24.25021")>
1+
Imports System
2+
Imports System.Reflection
3+
Imports System.Runtime.InteropServices
4+
5+
' 有关程序集的常规信息通过下列特性集
6+
' 控制。更改这些特性值可修改
7+
' 与程序集关联的信息。
8+
9+
' 查看程序集特性的值
10+
11+
<Assembly: AssemblyTitle("时间小工具")>
12+
<Assembly: AssemblyDescription("时间小工具")>
13+
<Assembly: AssemblyCompany("CJH")>
14+
<Assembly: AssemblyProduct("时间小工具")>
15+
<Assembly: AssemblyCopyright("Copyright © 2022-2025 CJH. All Rights Reserved.")>
16+
<Assembly: AssemblyTrademark("")>
17+
18+
<Assembly: ComVisible(False)>
19+
20+
'如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
21+
<Assembly: Guid("3715c34f-ba2d-4c69-9d7d-c7c2be189948")>
22+
23+
' 程序集的版本信息由下面四个值组成:
24+
'
25+
' 主版本
26+
' 次版本
27+
' 内部版本号
28+
' 修订号
29+
'
30+
' 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
31+
' 方法是按如下所示使用“*”:
32+
' <Assembly: AssemblyVersion("1.0.*")>
33+
34+
<Assembly: AssemblyVersion("1.1.24.25021")>
35+
<Assembly: AssemblyFileVersion("1.1.24.25021")>

0 commit comments

Comments
 (0)