Skip to content

Commit 716d112

Browse files
committed
improve chart
1 parent 638bc23 commit 716d112

23 files changed

+15
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ C#用GDI做的计时器
3131

3232
# 其它说明
3333

34-
找不到合适的语音包就用的小爱同学(是的,就是小米的那个),侵删
34+
音源谷歌翻译

Watch/Form1.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ void makePieChart(Chart chart)
706706
long lastNoteTime = 0;
707707

708708
List<string> xVal = new List<string>();
709-
List<int> yVal = new List<int>();
709+
List<double> yVal = new List<double>();
710710

711711
for (int i = 0; i < timers.Count; i++)
712712
{
@@ -724,7 +724,7 @@ void makePieChart(Chart chart)
724724
//timeParagrapgh.Append("[").Append(longToTimeStr(time - lastNoteTime)).Append("] ").Append(timers[i].comment).Append("\r\n");
725725

726726
xVal.Add(timers[i].comment);
727-
yVal.Add((int)((time - lastNoteTime) / 1000 / 60));
727+
yVal.Add(((time - lastNoteTime) / 1000d / 60d));
728728

729729
lastNoteTime = time;
730730
}
@@ -744,9 +744,9 @@ void makeFlowChart(Chart chart)
744744
long lastNoteTime = 0;
745745

746746
List<string> xVal = new List<string>();
747-
List<int> yVal = new List<int>();
748-
List<int> yVal2 = new List<int>();
749-
List<int> yVal3 = new List<int>();
747+
List<double> yVal = new List<double>();
748+
List<double> yVal2 = new List<double>();
749+
List<double> yVal3 = new List<double>();
750750
for (int i = 0; i < timers.Count; i++)
751751
{
752752
if (i % 2 == 0)
@@ -763,9 +763,9 @@ void makeFlowChart(Chart chart)
763763
//timeParagrapgh.Append("[").Append(longToTimeStr(time - lastNoteTime)).Append("] ").Append(timers[i].comment).Append("\r\n");
764764

765765
xVal.Add(timers[i].comment);
766-
yVal.Add((int)((lastNoteTime) / 1000 / 60));
767-
yVal2.Add((int)((time) / 1000 / 60));
768-
yVal3.Add((int)((time - lastNoteTime) / 60 / 1000));
766+
yVal.Add(((lastNoteTime) / 1000d / 60d));
767+
yVal2.Add(((time) / 1000d / 60d));
768+
yVal3.Add(((time - lastNoteTime) / 60d / 1000d));
769769
lastNoteTime = time;
770770
}
771771

Watch/FormLongMsg.Designer.cs

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Watch/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
3333
// 方法是按如下所示使用“*”: :
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.0.2.1")]
36-
[assembly: AssemblyFileVersion("2.0.2.1")]
35+
[assembly: AssemblyVersion("2.0.2.3")]
36+
[assembly: AssemblyFileVersion("2.0.2.3")]

Watch/一.wav

13.3 KB
Binary file not shown.

Watch/七.wav

17.9 KB
Binary file not shown.

Watch/三.wav

24.1 KB
Binary file not shown.

Watch/九.wav

12.6 KB
Binary file not shown.

Watch/二.wav

12.1 KB
Binary file not shown.

Watch/五.wav

12.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)