-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: align IsWorkingFromHome column in output
- Loading branch information
1 parent
52d97a4
commit bb9c66f
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
|
||
namespace wfh_log_wpf.Models | ||
{ | ||
/// <summary> | ||
/// The same as LogEntry.cs but with strings. | ||
/// Used to change log output by adding tabs | ||
/// before properties to make it look pretty | ||
/// </summary> | ||
public class LogEntryPretty | ||
{ | ||
public DateTime Time { get; set; } | ||
public string IsWorkingFromHome { get; set; } | ||
public string ConnectedNetwork { get; set; } | ||
|
||
public LogEntryPretty(LogEntry entry) | ||
{ | ||
IsWorkingFromHome = entry.IsWorkingFromHome | ||
? entry.IsWorkingFromHome.ToString() + " " | ||
: entry.IsWorkingFromHome.ToString(); | ||
ConnectedNetwork = entry.ConnectedNetwork.ToString(); | ||
Time = entry.Time; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters