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);
    }
}
