Files
PolyTraderSharp/Models/DashboardRow.cs
T
RichardandClaude Opus 5 5320d25d6d P1b: System.Drawing aus der Fachlogik entfernt
- TradeRowColoring liefert jetzt eine TradeRowTint-Kategorie (Loss/SmallWin/BigWin)
  statt einer System.Drawing.Color. Die Schwellenlogik bleibt getestet, die konkrete
  Farbe legt die UI fest (neu: Ui/TradeRowPalette.cs im CopyTrading-Modul).
  Bessere Schichtung und Voraussetzung dafuer, dass das Modul spaeter net8.0 wird.
- TradeRowColoringTests prueft die Kategorie statt der Farbe (gleiche Abdeckung).
- Models/DashboardRow.cs: verwaistes using System.Drawing entfernt.

System.Drawing liegt damit ausschliesslich noch in UI-Ordnern - die Fachlogik in
Core und Modulen ist frei davon.

442 Tests gruen, --smoke-ui gruen.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 17:13:14 +02:00

50 lines
1.3 KiB
C#

using System.ComponentModel;
namespace PolyTraderSharp.Models
{
public class DashboardRow
{
[Browsable(false)]
public int AccountId { get; set; }
[Browsable(false)]
public bool IsDemo { get; set; }
[Browsable(false)]
public bool IsActive { get; set; }
[DisplayName("Account")]
public string AccountName { get; set; } = string.Empty;
[DisplayName("Balance Gesamt")]
public decimal TotalBalance { get; set; }
[DisplayName("Balance verfügbar")]
public decimal AvailableBalance { get; set; }
[DisplayName("Balance in Positionen")]
public decimal PositionBalance { get; set; }
[DisplayName("Offene Trades")]
public int OpenTradesCount { get; set; }
[DisplayName("Trades (24h)")]
public int ClosedTrades24h { get; set; }
[DisplayName("P&L (24h)")]
public decimal Pnl24h { get; set; }
[DisplayName("Winrate (24h)")]
public string Winrate24h { get; set; } = "0%";
[DisplayName("Trades (7d)")]
public int ClosedTrades7d { get; set; }
[DisplayName("P&L (7d)")]
public decimal Pnl7d { get; set; }
[DisplayName("Winrate (7d)")]
public string Winrate7d { get; set; } = "0%";
}
}