Skip to content

Commit

Permalink
improve chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYFDroid committed Nov 30, 2019
1 parent 638bc23 commit 716d112
Show file tree
Hide file tree
Showing 23 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ C#用GDI做的计时器

# 其它说明

找不到合适的语音包就用的小爱同学(是的,就是小米的那个),侵删
音源谷歌翻译
16 changes: 8 additions & 8 deletions Watch/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ void makePieChart(Chart chart)
long lastNoteTime = 0;

List<string> xVal = new List<string>();
List<int> yVal = new List<int>();
List<double> yVal = new List<double>();

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

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

lastNoteTime = time;
}
Expand All @@ -744,9 +744,9 @@ void makeFlowChart(Chart chart)
long lastNoteTime = 0;

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

xVal.Add(timers[i].comment);
yVal.Add((int)((lastNoteTime) / 1000 / 60));
yVal2.Add((int)((time) / 1000 / 60));
yVal3.Add((int)((time - lastNoteTime) / 60 / 1000));
yVal.Add(((lastNoteTime) / 1000d / 60d));
yVal2.Add(((time) / 1000d / 60d));
yVal3.Add(((time - lastNoteTime) / 60d / 1000d));
lastNoteTime = time;
}

Expand Down
7 changes: 4 additions & 3 deletions Watch/FormLongMsg.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Watch/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.2.1")]
[assembly: AssemblyFileVersion("2.0.2.1")]
[assembly: AssemblyVersion("2.0.2.3")]
[assembly: AssemblyFileVersion("2.0.2.3")]
Binary file modified Watch/一.wav
Binary file not shown.
Binary file modified Watch/七.wav
Binary file not shown.
Binary file modified Watch/三.wav
Binary file not shown.
Binary file modified Watch/九.wav
Binary file not shown.
Binary file modified Watch/二.wav
Binary file not shown.
Binary file modified Watch/五.wav
Binary file not shown.
Binary file modified Watch/八.wav
Binary file not shown.
Binary file modified Watch/六.wav
Binary file not shown.
Binary file modified Watch/分.wav
Binary file not shown.
Binary file modified Watch/十.wav
Binary file not shown.
Binary file modified Watch/四.wav
Binary file not shown.
Binary file modified Watch/小.wav
Binary file not shown.
Binary file modified Watch/报.wav
Binary file not shown.
Binary file modified Watch/整.wav
Binary file not shown.
Binary file modified Watch/时.wav
Binary file not shown.
Binary file modified Watch/点.wav
Binary file not shown.
Binary file modified Watch/计.wav
Binary file not shown.
Binary file modified Watch/钟.wav
Binary file not shown.
Binary file modified Watch/零.wav
Binary file not shown.

0 comments on commit 716d112

Please sign in to comment.