-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Arch-Mina:main' into bugfix/custom-copy-id
- Loading branch information
Showing
11 changed files
with
940 additions
and
235 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,20 @@ | ||
<Window x:Class="Assets_Editor.LogView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:Assets_Editor" | ||
mc:Ignorable="d" | ||
Title="LogView" Height="450" Width="800"> | ||
<Grid> | ||
<ListView Name="LogListView"> | ||
<ListView.View> | ||
<GridView> | ||
<GridViewColumn Header="Time" DisplayMemberBinding="{Binding Timestamp}"/> | ||
<GridViewColumn Header="Level" DisplayMemberBinding="{Binding Level}"/> | ||
<GridViewColumn Header="Message" DisplayMemberBinding="{Binding Message}"/> | ||
</GridView> | ||
</ListView.View> | ||
</ListView> | ||
</Grid> | ||
</Window> |
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,45 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
|
||
namespace Assets_Editor | ||
{ | ||
/// <summary> | ||
/// Interaction logic for LogView.xaml | ||
/// </summary> | ||
public partial class LogView : Window | ||
{ | ||
public class LogEntry | ||
{ | ||
public DateTime Timestamp { get; set; } | ||
public string Level { get; set; } | ||
public string Message { get; set; } | ||
} | ||
public ObservableCollection<LogEntry> LogEntries { get; } = new ObservableCollection<LogEntry>(); | ||
public LogView() | ||
{ | ||
InitializeComponent(); | ||
LogListView.ItemsSource = LogEntries; | ||
} | ||
public void AddLogEntry(LogEntry entry) | ||
{ | ||
if (!Dispatcher.CheckAccess()) | ||
{ | ||
Dispatcher.Invoke(() => AddLogEntry(entry)); | ||
return; | ||
} | ||
LogEntries.Add(entry); | ||
} | ||
} | ||
} |
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