Commit Latest

This commit is contained in:
2025-06-19 06:38:03 -04:00
parent f4b8d13000
commit 89584b278a
4 changed files with 67 additions and 24 deletions

View File

@@ -0,0 +1,21 @@
using System;
using ScottPlot.Avalonia;
namespace PortfolioManager.ViewModels
{
public class PlotterLoadedEventArgs : EventArgs
{
public AvaPlot AvaPlot { get; set; } = default;
}
public abstract class PlotterWorkspaceViewModel : WorkspaceViewModel
{
public EventHandler<PlotterLoadedEventArgs> OnPlotterLoadedEventHandler;
public void OnPlotterLoaded(AvaPlot avaPlot)
{
EventHandler<PlotterLoadedEventArgs> handler = this.OnPlotterLoadedEventHandler;
if (null != handler) handler(this, new PlotterLoadedEventArgs() { AvaPlot = avaPlot });
}
}
}