namespace VoiceCat.App.Forms; partial class ServerIdentityDialog { private System.ComponentModel.IContainer components = null!; private Label lblWarning = null!; private Label lblFingerprint = null!; private Button btnAccept = null!; private Button btnCancel = null!; protected override void Dispose(bool disposing) { if (disposing) components?.Dispose(); base.Dispose(disposing); } private void InitializeComponent() { components = new System.ComponentModel.Container(); lblWarning = new Label(); lblFingerprint = new Label(); btnAccept = new Button(); btnCancel = new Button(); lblWarning.Location = new Point(12, 12); lblWarning.Size = new Size(460, 90); lblWarning.TabStop = true; // a Label can receive focus when TabStop=true — used // deliberately so OnShown's Focus() call forces a screen // reader to read this text immediately on activation. lblWarning.TabIndex = 0; lblFingerprint.Location = new Point(12, 110); lblFingerprint.Size = new Size(460, 90); lblFingerprint.TabStop = true; lblFingerprint.TabIndex = 1; lblFingerprint.Font = new Font(FontFamily.GenericMonospace, 9f); btnAccept.Location = new Point(150, 210); btnAccept.Size = new Size(220, 27); btnAccept.TabIndex = 2; btnAccept.Click += (_, _) => { DialogResult = DialogResult.OK; Close(); }; btnCancel.Text = "&Cancel"; btnCancel.Location = new Point(397, 210); btnCancel.Size = new Size(75, 27); btnCancel.TabIndex = 3; btnCancel.Click += (_, _) => { DialogResult = DialogResult.Cancel; Close(); }; AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(484, 250); Controls.Add(lblWarning); Controls.Add(lblFingerprint); Controls.Add(btnAccept); Controls.Add(btnCancel); // Cancel is the default/Esc-bound button — the SAFE default for an unverified or // changed identity is to NOT silently trust it. AcceptButton = btnCancel; CancelButton = btnCancel; FormBorderStyle = FormBorderStyle.FixedDialog; MaximizeBox = false; MinimizeBox = false; StartPosition = FormStartPosition.CenterParent; Text = "Server identity"; } }