84 lines
2.7 KiB
C#
84 lines
2.7 KiB
C#
|
|
namespace VoiceCat.App.Forms;
|
||
|
|
|
||
|
|
partial class ConnectDialog
|
||
|
|
{
|
||
|
|
private System.ComponentModel.IContainer components = null!;
|
||
|
|
private Label lblServers = null!;
|
||
|
|
private ListBox lstServers = null!;
|
||
|
|
private Button btnConnect = null!;
|
||
|
|
private Button btnAddNew = null!;
|
||
|
|
private Button btnEdit = null!;
|
||
|
|
private Button btnRemove = null!;
|
||
|
|
private Label lblStatus = null!;
|
||
|
|
|
||
|
|
protected override void Dispose(bool disposing)
|
||
|
|
{
|
||
|
|
if (disposing) components?.Dispose();
|
||
|
|
base.Dispose(disposing);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void InitializeComponent()
|
||
|
|
{
|
||
|
|
components = new System.ComponentModel.Container();
|
||
|
|
lblServers = new Label();
|
||
|
|
lstServers = new ListBox();
|
||
|
|
btnConnect = new Button();
|
||
|
|
btnAddNew = new Button();
|
||
|
|
btnEdit = new Button();
|
||
|
|
btnRemove = new Button();
|
||
|
|
lblStatus = new Label();
|
||
|
|
|
||
|
|
lblServers.Text = "&Saved servers:";
|
||
|
|
lblServers.AutoSize = true;
|
||
|
|
lblServers.Location = new Point(12, 12);
|
||
|
|
lblServers.TabIndex = 0;
|
||
|
|
|
||
|
|
lstServers.AccessibleName = "Saved servers";
|
||
|
|
lstServers.Location = new Point(12, 32);
|
||
|
|
lstServers.Size = new Size(360, 200);
|
||
|
|
lstServers.TabIndex = 1;
|
||
|
|
lstServers.SelectedIndexChanged += (_, _) => UpdateButtonsEnabled();
|
||
|
|
|
||
|
|
btnConnect.Text = "&Connect";
|
||
|
|
btnConnect.Location = new Point(384, 32);
|
||
|
|
btnConnect.Size = new Size(110, 27);
|
||
|
|
btnConnect.TabIndex = 2;
|
||
|
|
|
||
|
|
btnAddNew.Text = "&Add new...";
|
||
|
|
btnAddNew.Location = new Point(384, 65);
|
||
|
|
btnAddNew.Size = new Size(110, 27);
|
||
|
|
btnAddNew.TabIndex = 3;
|
||
|
|
|
||
|
|
btnEdit.Text = "&Edit...";
|
||
|
|
btnEdit.Location = new Point(384, 98);
|
||
|
|
btnEdit.Size = new Size(110, 27);
|
||
|
|
btnEdit.TabIndex = 4;
|
||
|
|
|
||
|
|
btnRemove.Text = "&Remove";
|
||
|
|
btnRemove.Location = new Point(384, 131);
|
||
|
|
btnRemove.Size = new Size(110, 27);
|
||
|
|
btnRemove.TabIndex = 5;
|
||
|
|
|
||
|
|
lblStatus.AccessibleName = "Connection status";
|
||
|
|
lblStatus.Location = new Point(12, 244);
|
||
|
|
lblStatus.Size = new Size(482, 23);
|
||
|
|
lblStatus.TabIndex = 6;
|
||
|
|
|
||
|
|
AutoScaleMode = AutoScaleMode.Font;
|
||
|
|
ClientSize = new Size(506, 280);
|
||
|
|
Controls.Add(lblServers);
|
||
|
|
Controls.Add(lstServers);
|
||
|
|
Controls.Add(btnConnect);
|
||
|
|
Controls.Add(btnAddNew);
|
||
|
|
Controls.Add(btnEdit);
|
||
|
|
Controls.Add(btnRemove);
|
||
|
|
Controls.Add(lblStatus);
|
||
|
|
AcceptButton = btnConnect;
|
||
|
|
MinimizeBox = false;
|
||
|
|
MaximizeBox = false;
|
||
|
|
FormBorderStyle = FormBorderStyle.FixedDialog;
|
||
|
|
StartPosition = FormStartPosition.CenterScreen;
|
||
|
|
Text = "VoiceCat — Connect to a server";
|
||
|
|
}
|
||
|
|
}
|