- System tray app z NotifyIcon + ContextMenuStrip - Polling API orderPRO (GET /api/print/jobs/pending) - Pobieranie etykiet PDF i druk przez PdfiumViewer - Formularz ustawień: URL API, klucz, drukarka, interwał - Okno logów z historią (ciemny motyw, Consolas) - Self-contained .NET 8 publish (win-x64) - Milestone v0.7 Zdalne drukowanie etykiet — COMPLETE Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
58 lines
1.6 KiB
C#
58 lines
1.6 KiB
C#
namespace OrderPROPrint.Forms;
|
|
|
|
partial class LogForm
|
|
{
|
|
private System.ComponentModel.IContainer components = null;
|
|
private TextBox txtLog;
|
|
private Button btnClear;
|
|
private Button btnCopy;
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.Text = "OrderPRO Print — Logi";
|
|
this.Size = new Size(650, 420);
|
|
this.StartPosition = FormStartPosition.CenterScreen;
|
|
this.MinimumSize = new Size(400, 300);
|
|
|
|
txtLog = new TextBox
|
|
{
|
|
Multiline = true,
|
|
ReadOnly = true,
|
|
ScrollBars = ScrollBars.Vertical,
|
|
Font = new Font("Consolas", 9),
|
|
BackColor = Color.FromArgb(30, 30, 30),
|
|
ForeColor = Color.FromArgb(220, 220, 220),
|
|
Dock = DockStyle.Fill,
|
|
WordWrap = true
|
|
};
|
|
|
|
btnClear = new Button { Text = "Wyczyść", Size = new Size(90, 28) };
|
|
btnClear.Click += BtnClear_Click;
|
|
|
|
btnCopy = new Button { Text = "Kopiuj", Size = new Size(90, 28) };
|
|
btnCopy.Click += BtnCopy_Click;
|
|
|
|
var panel = new FlowLayoutPanel
|
|
{
|
|
Dock = DockStyle.Bottom,
|
|
Height = 38,
|
|
FlowDirection = FlowDirection.RightToLeft,
|
|
Padding = new Padding(5, 5, 5, 0)
|
|
};
|
|
panel.Controls.Add(btnClear);
|
|
panel.Controls.Add(btnCopy);
|
|
|
|
this.Controls.Add(txtLog);
|
|
this.Controls.Add(panel);
|
|
}
|
|
}
|