Skip to content

Commit 06362ea

Browse files
authored
Merge pull request #9 from Leanwit/feature/#2-add-support-for-activity
Add support for activity
2 parents 2b59e1b + 20a512b commit 06362ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Internal.Manager/EntriesTextManager.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,24 @@ public class EntriesTextManager
1212
public EntriesTextManager()
1313
{
1414
this.InternalItem = new List<InternalItem>();
15-
string line;
15+
string line;
1616

1717
System.IO.StreamReader file =
1818
new System.IO.StreamReader(@"internal.txt");
1919
while ((line = file.ReadLine()) != null)
2020
{
2121
InternalItem.Add(this.EntriesToInternalItem(line.Split("\t")));
22-
}
22+
}
2323
}
2424

25-
2625
public InternalItem EntriesToInternalItem(string[] task)
2726
{
2827
string comment = task[4].Trim();
28+
string activity = task[5].Trim();
2929
string hour = task[3].Replace(",", ".");
3030
string date = task[0];
3131
var items = new InternalItem();
32+
items.Activity = activity;
3233
items.Comment = comment;
3334
items.Date = date;
3435
items.Time = hour;

0 commit comments

Comments
 (0)