Starting the terminal settings but I don't know if it's going to work Removed the list to allow users to control piano bar through exact commands

This commit is contained in:
minster586
2026-08-15 02:31:31 -04:00
parent df5303e0ef
commit 8b58fc30c4
2 changed files with 153 additions and 260 deletions
+66 -62
View File
@@ -1,4 +1,4 @@
namespace PainoBar_Helper
namespace PainoBar_Helper
{
partial class StationForm
{
@@ -29,74 +29,41 @@
private void InitializeComponent()
{
station_list_group_box = new GroupBox();
lstStations = new ListBox();
textBox1 = new TextBox();
search_label = new Label();
refresh_button = new Button();
btnSelectStation = new Button();
ok_button = new Button();
btnCancelStation = new Button();
terminal_box = new RichTextBox();
input_label = new Label();
command_input_box = new TextBox();
submit_button = new Button();
station_list_group_box.SuspendLayout();
SuspendLayout();
//
// station_list_group_box
//
station_list_group_box.Controls.Add(lstStations);
station_list_group_box.Controls.Add(textBox1);
station_list_group_box.Controls.Add(search_label);
station_list_group_box.Controls.Add(submit_button);
station_list_group_box.Controls.Add(command_input_box);
station_list_group_box.Controls.Add(input_label);
station_list_group_box.Controls.Add(terminal_box);
station_list_group_box.Location = new Point(12, 22);
station_list_group_box.Name = "station_list_group_box";
station_list_group_box.Size = new Size(391, 263);
station_list_group_box.Size = new Size(584, 333);
station_list_group_box.TabIndex = 0;
station_list_group_box.TabStop = false;
station_list_group_box.Text = "Available Stations";
station_list_group_box.Text = "Terminal window";
//
// lstStations
// ok_button
//
lstStations.FormattingEnabled = true;
lstStations.Location = new Point(26, 65);
lstStations.Name = "lstStations";
lstStations.Size = new Size(332, 174);
lstStations.TabIndex = 2;
//
// textBox1
//
textBox1.Location = new Point(85, 32);
textBox1.Name = "textBox1";
textBox1.Size = new Size(273, 24);
textBox1.TabIndex = 1;
textBox1.TextChanged += textBox1_TextChanged;
//
// search_label
//
search_label.AutoSize = true;
search_label.Location = new Point(26, 32);
search_label.Name = "search_label";
search_label.Size = new Size(50, 17);
search_label.TabIndex = 0;
search_label.Text = "Search:";
//
// refresh_button
//
refresh_button.Location = new Point(13, 307);
refresh_button.Name = "refresh_button";
refresh_button.Size = new Size(117, 23);
refresh_button.TabIndex = 1;
refresh_button.Text = "Refresh stations";
refresh_button.UseVisualStyleBackColor = true;
//
// btnSelectStation
//
btnSelectStation.Location = new Point(205, 307);
btnSelectStation.Name = "btnSelectStation";
btnSelectStation.Size = new Size(117, 23);
btnSelectStation.TabIndex = 2;
btnSelectStation.Text = "Select Station";
btnSelectStation.UseVisualStyleBackColor = true;
btnSelectStation.Click += btnSelectStation_Click;
ok_button.Location = new Point(29, 389);
ok_button.Name = "ok_button";
ok_button.Size = new Size(117, 23);
ok_button.TabIndex = 2;
ok_button.Text = "Ok";
ok_button.UseVisualStyleBackColor = true;
ok_button.Click += btnSelectStation_Click;
//
// btnCancelStation
//
btnCancelStation.Location = new Point(328, 307);
btnCancelStation.Location = new Point(521, 389);
btnCancelStation.Name = "btnCancelStation";
btnCancelStation.Size = new Size(86, 23);
btnCancelStation.TabIndex = 3;
@@ -104,14 +71,50 @@
btnCancelStation.UseVisualStyleBackColor = true;
btnCancelStation.Click += btnCancelStation_Click;
//
// terminal_box
//
terminal_box.BackColor = SystemColors.MenuText;
terminal_box.ForeColor = SystemColors.Window;
terminal_box.Location = new Point(17, 35);
terminal_box.Name = "terminal_box";
terminal_box.ReadOnly = true;
terminal_box.Size = new Size(551, 231);
terminal_box.TabIndex = 0;
terminal_box.Text = "";
//
// input_label
//
input_label.AutoSize = true;
input_label.Location = new Point(28, 294);
input_label.Name = "input_label";
input_label.Size = new Size(59, 17);
input_label.TabIndex = 1;
input_label.Text = "Command:";
//
// command_input_box
//
command_input_box.Location = new Point(91, 290);
command_input_box.Name = "command_input_box";
command_input_box.Size = new Size(244, 24);
command_input_box.TabIndex = 2;
//
// submit_button
//
submit_button.Location = new Point(449, 290);
submit_button.Name = "submit_button";
submit_button.Size = new Size(75, 23);
submit_button.TabIndex = 3;
submit_button.Text = "Submit";
submit_button.UseVisualStyleBackColor = true;
submit_button.Click += submit_button_Click;
//
// StationForm
//
AutoScaleDimensions = new SizeF(7F, 17F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(426, 351);
ClientSize = new Size(631, 434);
Controls.Add(btnCancelStation);
Controls.Add(btnSelectStation);
Controls.Add(refresh_button);
Controls.Add(ok_button);
Controls.Add(station_list_group_box);
Name = "StationForm";
Text = "StationForm";
@@ -123,11 +126,12 @@
#endregion
private GroupBox station_list_group_box;
private ListBox lstStations;
private TextBox textBox1;
private Label search_label;
private Button refresh_button;
private Button btnSelectStation;
private Button ok_button;
private Button btnCancelStation;
private RichTextBox terminal_box;
private Button submit_button;
private TextBox command_input_box;
private Label input_label;
}
}
}