Copytrading-Views auf Designer-Muster umgestellt

Die drei Modul-Views wurden von komplett code-first (alle Controls im Konstruktor)
auf das Standard-WinForms-Designer-Muster umgestellt (je X.cs + X.Designer.cs mit
InitializeComponent), damit sie im Designer geöffnet und bearbeitet werden können:

- ClosedTradesView, AccountSettingsView, MasterTradersView: alle wichtigen
  Steuerelemente (Panels, DataGridView mit expliziten Spalten via
  AutoGenerateColumns=false, PropertyGrid, ToolStrip, GroupBox, CheckedListBox,
  ComboBox, Buttons, Labels, Splitter) sind jetzt Designer-Felder.
- Konsistent mit den Core-Views (DashboardView-Muster): Layout im Designer,
  Zellformate/Event-Wiring/Datenbindung im Code.

Verifiziert: --smoke-ui grün (3 Accounts / 32 Trader; alle Views + Launcher OK).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Richard
2026-07-06 10:11:30 +02:00
co-authored by Claude Opus 4.8
parent f1451b547c
commit 4caba5bfd1
6 changed files with 721 additions and 207 deletions
@@ -0,0 +1,238 @@
namespace PolyTrader.Modules.CopyTrading.Ui
{
partial class ClosedTradesView
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Vom Komponenten-Designer generierter Code
private void InitializeComponent()
{
this.pnlTop = new System.Windows.Forms.Panel();
this.lblSummary = new System.Windows.Forms.Label();
this.btnRefresh = new System.Windows.Forms.Button();
this.dgvTrades = new System.Windows.Forms.DataGridView();
this.colTradeId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colAccount = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colTrader = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colMarket = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colOutcome = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colSide = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colEntry = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colExit = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colSize = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPnl = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colPnlPct = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colOpenedAt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colClosedAt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pnlTop.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvTrades)).BeginInit();
this.SuspendLayout();
//
// pnlTop
//
this.pnlTop.Controls.Add(this.lblSummary);
this.pnlTop.Controls.Add(this.btnRefresh);
this.pnlTop.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlTop.Location = new System.Drawing.Point(0, 0);
this.pnlTop.Name = "pnlTop";
this.pnlTop.Size = new System.Drawing.Size(1100, 40);
this.pnlTop.TabIndex = 0;
//
// lblSummary
//
this.lblSummary.AutoSize = true;
this.lblSummary.Location = new System.Drawing.Point(148, 12);
this.lblSummary.Name = "lblSummary";
this.lblSummary.Size = new System.Drawing.Size(16, 15);
this.lblSummary.TabIndex = 1;
this.lblSummary.Text = "—";
//
// btnRefresh
//
this.btnRefresh.Location = new System.Drawing.Point(8, 6);
this.btnRefresh.Name = "btnRefresh";
this.btnRefresh.Size = new System.Drawing.Size(130, 28);
this.btnRefresh.TabIndex = 0;
this.btnRefresh.Text = "Aktualisieren";
this.btnRefresh.UseVisualStyleBackColor = true;
//
// dgvTrades
//
this.dgvTrades.AllowUserToAddRows = false;
this.dgvTrades.AllowUserToDeleteRows = false;
this.dgvTrades.AutoGenerateColumns = false;
this.dgvTrades.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvTrades.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colTradeId,
this.colAccount,
this.colTrader,
this.colMarket,
this.colOutcome,
this.colSide,
this.colEntry,
this.colExit,
this.colSize,
this.colPnl,
this.colPnlPct,
this.colOpenedAt,
this.colClosedAt});
this.dgvTrades.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvTrades.Location = new System.Drawing.Point(0, 40);
this.dgvTrades.Name = "dgvTrades";
this.dgvTrades.ReadOnly = true;
this.dgvTrades.RowHeadersVisible = false;
this.dgvTrades.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvTrades.Size = new System.Drawing.Size(1100, 560);
this.dgvTrades.TabIndex = 1;
//
// colTradeId
//
this.colTradeId.DataPropertyName = "TradeId";
this.colTradeId.HeaderText = "#";
this.colTradeId.Name = "colTradeId";
this.colTradeId.ReadOnly = true;
this.colTradeId.Width = 60;
//
// colAccount
//
this.colAccount.DataPropertyName = "AccountName";
this.colAccount.HeaderText = "Account";
this.colAccount.Name = "colAccount";
this.colAccount.ReadOnly = true;
this.colAccount.Width = 130;
//
// colTrader
//
this.colTrader.DataPropertyName = "SourceTraderName";
this.colTrader.HeaderText = "Master-Trader";
this.colTrader.Name = "colTrader";
this.colTrader.ReadOnly = true;
this.colTrader.Width = 130;
//
// colMarket
//
this.colMarket.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.colMarket.DataPropertyName = "MarketQuestion";
this.colMarket.HeaderText = "Markt";
this.colMarket.Name = "colMarket";
this.colMarket.ReadOnly = true;
//
// colOutcome
//
this.colOutcome.DataPropertyName = "Outcome";
this.colOutcome.HeaderText = "Outcome";
this.colOutcome.Name = "colOutcome";
this.colOutcome.ReadOnly = true;
this.colOutcome.Width = 80;
//
// colSide
//
this.colSide.DataPropertyName = "Side";
this.colSide.HeaderText = "Side";
this.colSide.Name = "colSide";
this.colSide.ReadOnly = true;
this.colSide.Width = 60;
//
// colEntry
//
this.colEntry.DataPropertyName = "EntryPrice";
this.colEntry.HeaderText = "Entry";
this.colEntry.Name = "colEntry";
this.colEntry.ReadOnly = true;
this.colEntry.Width = 70;
//
// colExit
//
this.colExit.DataPropertyName = "ExitPrice";
this.colExit.HeaderText = "Exit";
this.colExit.Name = "colExit";
this.colExit.ReadOnly = true;
this.colExit.Width = 70;
//
// colSize
//
this.colSize.DataPropertyName = "Size";
this.colSize.HeaderText = "Size";
this.colSize.Name = "colSize";
this.colSize.ReadOnly = true;
this.colSize.Width = 70;
//
// colPnl
//
this.colPnl.DataPropertyName = "RealizedPnl";
this.colPnl.HeaderText = "PnL";
this.colPnl.Name = "colPnl";
this.colPnl.ReadOnly = true;
this.colPnl.Width = 80;
//
// colPnlPct
//
this.colPnlPct.DataPropertyName = "PnlPercent";
this.colPnlPct.HeaderText = "PnL %";
this.colPnlPct.Name = "colPnlPct";
this.colPnlPct.ReadOnly = true;
this.colPnlPct.Width = 70;
//
// colOpenedAt
//
this.colOpenedAt.DataPropertyName = "OpenedAt";
this.colOpenedAt.HeaderText = "Eröffnet";
this.colOpenedAt.Name = "colOpenedAt";
this.colOpenedAt.ReadOnly = true;
this.colOpenedAt.Width = 130;
//
// colClosedAt
//
this.colClosedAt.DataPropertyName = "ClosedAt";
this.colClosedAt.HeaderText = "Geschlossen";
this.colClosedAt.Name = "colClosedAt";
this.colClosedAt.ReadOnly = true;
this.colClosedAt.Width = 130;
//
// ClosedTradesView
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1100, 600);
this.Controls.Add(this.dgvTrades);
this.Controls.Add(this.pnlTop);
this.MinimumSize = new System.Drawing.Size(700, 400);
this.Name = "ClosedTradesView";
this.Text = "Geschlossene Copytrades";
this.pnlTop.ResumeLayout(false);
this.pnlTop.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvTrades)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel pnlTop;
private System.Windows.Forms.Button btnRefresh;
private System.Windows.Forms.Label lblSummary;
private System.Windows.Forms.DataGridView dgvTrades;
private System.Windows.Forms.DataGridViewTextBoxColumn colTradeId;
private System.Windows.Forms.DataGridViewTextBoxColumn colAccount;
private System.Windows.Forms.DataGridViewTextBoxColumn colTrader;
private System.Windows.Forms.DataGridViewTextBoxColumn colMarket;
private System.Windows.Forms.DataGridViewTextBoxColumn colOutcome;
private System.Windows.Forms.DataGridViewTextBoxColumn colSide;
private System.Windows.Forms.DataGridViewTextBoxColumn colEntry;
private System.Windows.Forms.DataGridViewTextBoxColumn colExit;
private System.Windows.Forms.DataGridViewTextBoxColumn colSize;
private System.Windows.Forms.DataGridViewTextBoxColumn colPnl;
private System.Windows.Forms.DataGridViewTextBoxColumn colPnlPct;
private System.Windows.Forms.DataGridViewTextBoxColumn colOpenedAt;
private System.Windows.Forms.DataGridViewTextBoxColumn colClosedAt;
}
}