-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update event viewer to have colored text
- Loading branch information
1 parent
a24a72b
commit d53c24c
Showing
3 changed files
with
59 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using BlossomiShymae.GrrrLCU; | ||
using CommunityToolkit.Mvvm.ComponentModel; | ||
using System; | ||
|
||
namespace Needlework.Net.ViewModels | ||
{ | ||
public class EventViewModel : ObservableObject | ||
{ | ||
public string Time { get; } | ||
public string Type { get; } | ||
public string Uri { get; } | ||
|
||
public string Key => $"{Time} {Type} {Uri}"; | ||
|
||
public EventViewModel(EventData eventData) | ||
{ | ||
Time = $"{DateTime.Now:HH:mm:ss.fff}"; | ||
Type = eventData?.EventType.ToUpper() ?? string.Empty; | ||
Uri = eventData?.Uri ?? string.Empty; | ||
} | ||
} | ||
} |
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