|
1 | 1 | '**************************************************************************** |
2 | 2 | ' TimeControl |
3 | | -' Copyright (C) 2022-2024 CJH. |
| 3 | +' Copyright (C) 2022-2025 CJH. |
4 | 4 | ' |
5 | 5 | ' This program is free software: you can redistribute it and/or modify |
6 | 6 | ' it under the terms of the GNU General Public License as published by |
@@ -209,7 +209,7 @@ errcode: |
209 | 209 | ComboBox4.SelectedText = "自定义背景" |
210 | 210 | End If |
211 | 211 |
|
212 | | - Label1.Text = "时间小工具 版本:" & My.Application.Info.Version.ToString & vbCrLf & "版权所有 © 2022-2024 CJH。" |
| 212 | + Label1.Text = "时间小工具 版本:" & My.Application.Info.Version.ToString & vbCrLf & "版权所有 © 2022-2025 CJH。" |
213 | 213 | Call formatcolorcurset() |
214 | 214 | End Sub |
215 | 215 | Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress |
@@ -448,8 +448,14 @@ errcode: |
448 | 448 | End If |
449 | 449 | End Sub |
450 | 450 |
|
451 | | - Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click |
452 | | - If (MessageBox.Show("确定退出时间小工具吗?", "时间小工具", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) = DialogResult.Yes) Then |
| 451 | + Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click |
| 452 | + Dim aa As Integer = 0 |
| 453 | + If MessageBox.Show("确定退出时间小工具吗?", "时间小工具", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) = DialogResult.Yes Then |
| 454 | + aa = 1 |
| 455 | + End If |
| 456 | + If aa = 1 Then |
| 457 | + Form1.Timer1.Enabled = False |
| 458 | + Form1.Timer2.Enabled = False |
453 | 459 | End |
454 | 460 | End If |
455 | 461 | End Sub |
@@ -1694,8 +1700,14 @@ errcode: |
1694 | 1700 | MessageBox.Show("当前支持的命令行:" & vbCrLf & "/safemode 以安全模式加载,不读取设置也不保存设置。当程序由于配置原因无法正常启动,可以使用该命令行启动后恢复默认设置。" & vbCrLf & "/noproflie 不使用配置文件。" & vbCrLf & "/nosaveprofile 读取设置但不保存设置" & vbCrLf & vbCrLf & "部分功能可能因为策略设置而不可用。命令行的内容要优先于策略设置,为所有用户设置的策略优先级高于针对单一用户设置的策略。", "帮助", MessageBoxButtons.OK, MessageBoxIcon.Information) |
1695 | 1701 | End Sub |
1696 | 1702 |
|
1697 | | - Private Sub Button12_Click(sender As System.Object, e As System.EventArgs) Handles Button12.Click |
| 1703 | + Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click |
| 1704 | + Dim bb As Integer = 0 |
1698 | 1705 | If (MessageBox.Show("确定重启时间小工具吗?", "时间小工具", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) = DialogResult.Yes) Then |
| 1706 | + bb = 1 |
| 1707 | + End If |
| 1708 | + If bb = 1 Then |
| 1709 | + Form1.Timer1.Enabled = False |
| 1710 | + Form1.Timer2.Enabled = False |
1699 | 1711 | System.Diagnostics.Process.Start(Application.ExecutablePath) |
1700 | 1712 | End |
1701 | 1713 | End If |
|
0 commit comments