Skip to content

Commit 76778b4

Browse files
authored
Fix issue.
Fixed an issue about E-notation
1 parent d84fda4 commit 76778b4

File tree

5 files changed

+63
-17
lines changed

5 files changed

+63
-17
lines changed

Counter/ApplicationEvents.vb

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Namespace My
2+
' 以下事件可用于 MyApplication:
3+
' Startup:应用程序启动时在创建启动窗体之前引发。
4+
' Shutdown:在关闭所有应用程序窗体后引发。如果应用程序非正常终止,则不会引发此事件。
5+
' UnhandledException:在应用程序遇到未经处理的异常时引发。
6+
' StartupNextInstance:在启动单实例应用程序且应用程序已处于活动状态时引发。
7+
' NetworkAvailabilityChanged:在连接或断开网络连接时引发。
8+
Partial Friend Class MyApplication
9+
End Class
10+
End Namespace

Counter/Counter.vbproj

+27
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@
1313
<MyType>WindowsForms</MyType>
1414
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
1515
<Deterministic>true</Deterministic>
16+
<IsWebBootstrapper>false</IsWebBootstrapper>
17+
<PublishUrl>publish\</PublishUrl>
18+
<Install>true</Install>
19+
<InstallFrom>Disk</InstallFrom>
20+
<UpdateEnabled>false</UpdateEnabled>
21+
<UpdateMode>Foreground</UpdateMode>
22+
<UpdateInterval>7</UpdateInterval>
23+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
24+
<UpdatePeriodically>false</UpdatePeriodically>
25+
<UpdateRequired>false</UpdateRequired>
26+
<MapFileExtensions>true</MapFileExtensions>
27+
<SupportUrl>https://github.com/chenshaoju/simple-counter/issues</SupportUrl>
28+
<ProductName>Simple Counter</ProductName>
29+
<PublisherName>Shaoju Chen</PublisherName>
30+
<ApplicationRevision>1</ApplicationRevision>
31+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
32+
<UseApplicationTrust>false</UseApplicationTrust>
33+
<BootstrapperEnabled>true</BootstrapperEnabled>
1634
</PropertyGroup>
1735
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1836
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -33,6 +51,7 @@
3351
<OutputPath>bin\Release\</OutputPath>
3452
<DocumentationFile>Counter.xml</DocumentationFile>
3553
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
54+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
3655
</PropertyGroup>
3756
<PropertyGroup>
3857
<OptionExplicit>On</OptionExplicit>
@@ -71,6 +90,7 @@
7190
<Import Include="System.Windows.Forms" />
7291
</ItemGroup>
7392
<ItemGroup>
93+
<Compile Include="ApplicationEvents.vb" />
7494
<Compile Include="Form1.vb">
7595
<SubType>Form</SubType>
7696
</Compile>
@@ -120,5 +140,12 @@
120140
<ItemGroup>
121141
<Content Include="abacus.ico" />
122142
</ItemGroup>
143+
<ItemGroup>
144+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
145+
<Visible>False</Visible>
146+
<ProductName>.NET Framework 3.5 SP1</ProductName>
147+
<Install>true</Install>
148+
</BootstrapperPackage>
149+
</ItemGroup>
123150
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
124151
</Project>

Counter/Counter.vbproj.user

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<PublishUrlHistory>publish\</PublishUrlHistory>
5+
<InstallUrlHistory />
6+
<SupportUrlHistory />
7+
<UpdateUrlHistory />
8+
<BootstrapperUrlHistory />
9+
<ErrorReportUrlHistory />
10+
<FallbackCulture>zh-CN</FallbackCulture>
11+
<VerifyUploadedFiles>false</VerifyUploadedFiles>
12+
</PropertyGroup>
13+
</Project>

Counter/Form1.vb

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
Public Class Form1
2-
Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
3-
4-
End Sub
52

63
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
7-
Label1.Text = Label1.Text + 1
4+
Label1.Text = CLng(CLng(Label1.Text) + 1)
85
End Sub
96

107
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
11-
Label1.Text = 0
8+
Label1.Text = CLng(0)
129
End Sub
1310

14-
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
15-
16-
End Sub
1711
End Class

Counter/My Project/AssemblyInfo.vb

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Imports System
1+
Imports System.Resources
2+
Imports System
23
Imports System.Reflection
34
Imports System.Runtime.InteropServices
45

@@ -8,12 +9,12 @@ Imports System.Runtime.InteropServices
89

910
'查看程序集特性的值
1011

11-
<Assembly: AssemblyTitle("Counter")>
12-
<Assembly: AssemblyDescription("")>
13-
<Assembly: AssemblyCompany("")>
14-
<Assembly: AssemblyProduct("Counter")>
15-
<Assembly: AssemblyCopyright("Copyright © 2019")>
16-
<Assembly: AssemblyTrademark("")>
12+
<Assembly: AssemblyTitle("Simple Counter")>
13+
<Assembly: AssemblyDescription("A simple counter for Microsoft Windows")>
14+
<Assembly: AssemblyCompany("N/A")>
15+
<Assembly: AssemblyProduct("Simple Counter")>
16+
<Assembly: AssemblyCopyright("Copyright © 2019 Shaoju Chen")>
17+
<Assembly: AssemblyTrademark("N/A")>
1718

1819
<Assembly: ComVisible(False)>
1920

@@ -31,5 +32,6 @@ Imports System.Runtime.InteropServices
3132
' 方法是按如下所示使用“*”: :
3233
' <Assembly: AssemblyVersion("1.0.*")>
3334

34-
<Assembly: AssemblyVersion("1.0.0.0")>
35-
<Assembly: AssemblyFileVersion("1.0.0.0")>
35+
<Assembly: AssemblyVersion("1.0.0.1")>
36+
<Assembly: AssemblyFileVersion("1.0.0.1")>
37+
<Assembly: NeutralResourcesLanguage("en-US")>

0 commit comments

Comments
 (0)