From 3478fff42b5a69fa50b3baa8f27c8cf1f98c764d Mon Sep 17 00:00:00 2001 From: Alexandr Eronin Date: Wed, 21 Jan 2026 16:40:50 +0300 Subject: [PATCH] Switch WPF charts to ScottPlot --- README.md | 28 +++ TradeViewer/App.xaml | 6 + TradeViewer/App.xaml.cs | 7 + TradeViewer/MainWindow.xaml | 26 +++ TradeViewer/MainWindow.xaml.cs | 234 ++++++++++++++++++++ TradeViewer/Models/ParsedData.cs | 52 +++++ TradeViewer/Parsing/LogParser.cs | 357 +++++++++++++++++++++++++++++++ TradeViewer/TradeViewer.csproj | 13 ++ 8 files changed, 723 insertions(+) create mode 100644 README.md create mode 100644 TradeViewer/App.xaml create mode 100644 TradeViewer/App.xaml.cs create mode 100644 TradeViewer/MainWindow.xaml create mode 100644 TradeViewer/MainWindow.xaml.cs create mode 100644 TradeViewer/Models/ParsedData.cs create mode 100644 TradeViewer/Parsing/LogParser.cs create mode 100644 TradeViewer/TradeViewer.csproj diff --git a/README.md b/README.md new file mode 100644 index 0000000..e5f72fd --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# Trade Viewer (ScottPlot WPF) + +This repository now contains a WPF application that mirrors the Python Plotly chart using ScottPlot. + +## Requirements + +- Windows with .NET 8 SDK + +## Run + +1. Restore packages: + +```bash +dotnet restore TradeViewer/TradeViewer.csproj +``` + +2. Start the app: + +```bash +dotnet run --project TradeViewer/TradeViewer.csproj +``` + +3. Click **Load** and select your CSV/log file. + +## Notes + +- The parser expects the same pipe-delimited log format as the original Python script. +- Update the default file path in `MainWindow.xaml.cs` if you want a different initial file. diff --git a/TradeViewer/App.xaml b/TradeViewer/App.xaml new file mode 100644 index 0000000..23493cc --- /dev/null +++ b/TradeViewer/App.xaml @@ -0,0 +1,6 @@ + + + + diff --git a/TradeViewer/App.xaml.cs b/TradeViewer/App.xaml.cs new file mode 100644 index 0000000..fbbf0d2 --- /dev/null +++ b/TradeViewer/App.xaml.cs @@ -0,0 +1,7 @@ +using System.Windows; + +namespace TradeViewer; + +public partial class App : Application +{ +} diff --git a/TradeViewer/MainWindow.xaml b/TradeViewer/MainWindow.xaml new file mode 100644 index 0000000..ed73ae1 --- /dev/null +++ b/TradeViewer/MainWindow.xaml @@ -0,0 +1,26 @@ + + + + + + + + + + + + +