Skip to content

Commit b11172f

Browse files
committed
Upgrade to .net 5.0
1 parent 1b0ae48 commit b11172f

File tree

5 files changed

+326
-90
lines changed

5 files changed

+326
-90
lines changed

时控.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.30804.86
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "时控", "时控\时控.csproj", "{2476A881-F187-47FB-80EF-8F3F1FC17725}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "时控", "时控\时控.csproj", "{2476A881-F187-47FB-80EF-8F3F1FC17725}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

时控/ControlPanel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
using System.Text;
88
using System.Threading.Tasks;
99
using System.Windows.Forms;
10+
using System.Runtime.InteropServices;
1011

1112
namespace TimeControl
1213
{
1314
public partial class ControlPanel : Form
1415
{
16+
1517
public ControlPanel()
1618
{
1719
InitializeComponent();
@@ -22,6 +24,7 @@ private void startButton_Click(object sender, EventArgs e)
2224
{
2325
Lock @lock = new Lock(Convert.ToInt32( timeChooser.Value*60),true);
2426
@lock.ShowDialog();
27+
2528
}
2629
}
2730
}

时控/Lock.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ private void UpdateProgress()
5656
else
5757
{
5858
timer.Stop();
59+
MessageBox.Show("你已经专注了" + time);
5960
close = true;
6061
Close();
6162
}
@@ -68,5 +69,6 @@ private void Lock_FormClosing(object sender, FormClosingEventArgs e)
6869
e.Cancel=true;
6970
}
7071
}
72+
7173
}
7274
}

0 commit comments

Comments
 (0)