Skip to content

Commit 5d1e1c3

Browse files
committed
Upload 20240915
1 parent 5023608 commit 5d1e1c3

File tree

18 files changed

+134
-69
lines changed

18 files changed

+134
-69
lines changed

Assets/MainUI.png

2.5 KB
Loading

Assets/MainUIDark.png

4.31 KB
Loading

Assets/SettingUI.png

6.91 KB
Loading

README.md

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,56 @@
11
# TimeControl - 时钟小工具
22

3+
## 关于本项目
4+
5+
这是一个支持在电脑上随时查看当前时间的小工具。本软件可以安装在大屏上(例如教学大屏),也可以安装在普通电脑上。
6+
7+
## 功能
8+
9+
本程序支持的功能有:
10+
11+
- [x] 显示时间(基础功能)
12+
- [x] 深浅色模式
13+
- [x] 多种主题(可以自定义)
14+
- [x] 自定义时间显示格式
15+
- [x] 支持通过组策略配置策略
16+
- [x] 支持保存你的设置
17+
- [x] 其它一些功能。它们正在等待被你发现……
18+
19+
## 下载
320

421
转到[发布页](https://github.com/cjhdevact/TimeControl/releases)下载程序或源代码。
22+
523
早期版本的源代码也在发布页里。
624

7-
------------
25+
## 程序截图
826

9-
程序截图:
27+
主程序界面(浅色)
1028

29+
![主程序界面(浅色)](Assets/MainUI.png)
1130

12-
主程序界面
31+
主程序界面(深色)
1332

33+
![主程序界面(深色)](Assets/MainUIDark.png)
1434

15-
![主程序界面](Assets/MainUI.png)
35+
设置界面
1636

37+
![设置界面](Assets/SettingUI.png)
1738

18-
设置界面
39+
## 开源说明
1940

41+
在修改和由本仓库代码衍生的代码中需要说明“基于 TimeControl 开发”
2042

21-
![设置界面](Assets/SettingUI.png)
43+
## 相关项目
2244

45+
[TimeControlAero](https://github.com/cjhdevact/TimeControlAero) - 时钟小工具Aero版(开发中)
2346

24-
------------
47+
## 你知道吗?
2548

49+
本项目诞生于2022年12月份。开发本程序最初的目的是为了在上课时随时查看准确时间……
50+
51+
本程序的代码由于诞生于作者刚开始使用VB.net语言开发的时候,所以代码写的很乱,命名没有那么规范,且只有少量注释,如果要理解本程序的代码,请自己尝试一下……
52+
~~重构本程序已经被提上了计划~~
53+
54+
------------
2655

27-
本程序基于 `GPL-3.0` 授权。
56+
本程序基于 `GPL-3.0` 授权。

Src/TimeControl.suo

-1 KB
Binary file not shown.

Src/TimeControl/App.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,12 @@
33
<startup>
44
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" />
55
</startup>
6+
<appSettings>
7+
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
8+
</appSettings>
9+
<!--
10+
<System.Windows.Forms.ApplicationConfigurationSection>
11+
<add key="DpiAwareness" value="PerMonitorV2" />
12+
</System.Windows.Forms.ApplicationConfigurationSection>
13+
-->
614
</configuration>

Src/TimeControl/Form1.vb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Public Class Form1
9494
Public UnSaveData As Integer '不保存设置
9595
Public UnReadData As Integer '不读取设置
9696
Public ShowModeTips As Integer '不显示横幅
97+
9798
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
9899
Try
99100
If Form2.CheckBox5.Checked = True Then
@@ -523,17 +524,17 @@ Public Class Form1
523524

524525
Try
525526
If Command().ToLower = "/safemode" Then
526-
UnReadData = 1
527-
UnSaveData = 1
528-
Call loaddef(sender, e)
529527
If DisbFuState = 1 Then
530528
Form2.Label20.Text = "当前处于安全模式,你的更改将不会被保存。部分功能由于被管理员禁用而无法使用。"
531529
Else
532530
Form2.Label20.Text = "当前处于安全模式,你的更改将不会被保存。"
533531
End If
532+
UnReadData = 1
533+
UnSaveData = 1
534534
Form2.Label20.Visible = True
535535
Form2.LinkLabel3.Visible = True
536536
Form2.Button5.Visible = True
537+
Call loaddef(sender, e)
537538
End If
538539

539540
If Command().ToLower = "/noprofile" Then

0 commit comments

Comments
 (0)