226 lines
9.9 KiB
C#
226 lines
9.9 KiB
C#
// File: MainForm.Designer.cs
|
|
namespace VoiceAssistantPoC_Win
|
|
{
|
|
partial class MainForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
|
rtbLogs = new RichTextBox();
|
|
pnlBottom = new Panel();
|
|
cmbSessions = new ComboBox();
|
|
lblSession = new Label();
|
|
btnRefreshSessions = new Button();
|
|
reInitSessionBtn = new Button();
|
|
lblLiveTranscript = new Label();
|
|
txtManualInput = new TextBox();
|
|
btnSend = new Button();
|
|
chkVoiceMode = new CheckBox();
|
|
pnlBottom.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// rtbLogs
|
|
//
|
|
rtbLogs.BackColor = Color.FromArgb(30, 30, 30);
|
|
rtbLogs.BorderStyle = BorderStyle.None;
|
|
rtbLogs.Dock = DockStyle.Fill;
|
|
rtbLogs.Font = new Font("Consolas", 10F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
rtbLogs.ForeColor = Color.LightGray;
|
|
rtbLogs.Location = new Point(0, 0);
|
|
rtbLogs.Margin = new Padding(4, 3, 4, 3);
|
|
rtbLogs.Name = "rtbLogs";
|
|
rtbLogs.ReadOnly = true;
|
|
rtbLogs.Size = new Size(915, 532);
|
|
rtbLogs.TabIndex = 0;
|
|
rtbLogs.Text = "";
|
|
//
|
|
// pnlBottom
|
|
//
|
|
pnlBottom.BackColor = Color.FromArgb(45, 45, 48);
|
|
pnlBottom.Controls.Add(cmbSessions);
|
|
pnlBottom.Controls.Add(lblSession);
|
|
pnlBottom.Controls.Add(btnRefreshSessions);
|
|
pnlBottom.Controls.Add(reInitSessionBtn);
|
|
pnlBottom.Controls.Add(lblLiveTranscript);
|
|
pnlBottom.Controls.Add(txtManualInput);
|
|
pnlBottom.Controls.Add(btnSend);
|
|
pnlBottom.Controls.Add(chkVoiceMode);
|
|
pnlBottom.Dock = DockStyle.Bottom;
|
|
pnlBottom.Location = new Point(0, 532);
|
|
pnlBottom.Margin = new Padding(4, 3, 4, 3);
|
|
pnlBottom.Name = "pnlBottom";
|
|
pnlBottom.Size = new Size(915, 115);
|
|
pnlBottom.TabIndex = 1;
|
|
//
|
|
// cmbSessions
|
|
//
|
|
cmbSessions.DropDownStyle = ComboBoxStyle.DropDownList;
|
|
cmbSessions.FormattingEnabled = true;
|
|
cmbSessions.Location = new Point(120, 10);
|
|
cmbSessions.Name = "cmbSessions";
|
|
cmbSessions.Size = new Size(300, 23);
|
|
cmbSessions.TabIndex = 5;
|
|
cmbSessions.SelectedIndexChanged += cmbSessions_SelectedIndexChanged;
|
|
//
|
|
// lblSession
|
|
//
|
|
lblSession.AutoSize = true;
|
|
lblSession.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 0);
|
|
lblSession.ForeColor = Color.White;
|
|
lblSession.Location = new Point(14, 13);
|
|
lblSession.Name = "lblSession";
|
|
lblSession.Size = new Size(90, 15);
|
|
lblSession.TabIndex = 6;
|
|
lblSession.Text = "Active Session:";
|
|
//
|
|
// btnRefreshSessions
|
|
//
|
|
btnRefreshSessions.BackColor = Color.FromArgb(0, 122, 204);
|
|
btnRefreshSessions.FlatAppearance.BorderSize = 0;
|
|
btnRefreshSessions.FlatStyle = FlatStyle.Flat;
|
|
btnRefreshSessions.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 0);
|
|
btnRefreshSessions.ForeColor = Color.White;
|
|
btnRefreshSessions.Location = new Point(430, 9);
|
|
btnRefreshSessions.Name = "btnRefreshSessions";
|
|
btnRefreshSessions.Size = new Size(75, 25);
|
|
btnRefreshSessions.TabIndex = 7;
|
|
btnRefreshSessions.Text = "Refresh";
|
|
btnRefreshSessions.UseVisualStyleBackColor = false;
|
|
btnRefreshSessions.Click += btnRefreshSessions_Click;
|
|
//
|
|
// reInitSessionBtn
|
|
//
|
|
reInitSessionBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
reInitSessionBtn.BackColor = Color.FromArgb(0, 122, 204);
|
|
reInitSessionBtn.FlatAppearance.BorderSize = 0;
|
|
reInitSessionBtn.FlatStyle = FlatStyle.Flat;
|
|
reInitSessionBtn.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 0);
|
|
reInitSessionBtn.ForeColor = Color.White;
|
|
reInitSessionBtn.Location = new Point(788, 70);
|
|
reInitSessionBtn.Margin = new Padding(4, 3, 4, 3);
|
|
reInitSessionBtn.Name = "reInitSessionBtn";
|
|
reInitSessionBtn.Size = new Size(99, 25);
|
|
reInitSessionBtn.TabIndex = 4;
|
|
reInitSessionBtn.Text = "Re Init Session";
|
|
reInitSessionBtn.UseVisualStyleBackColor = false;
|
|
reInitSessionBtn.Click += reInitSessionBtn_Click;
|
|
//
|
|
// lblLiveTranscript
|
|
//
|
|
lblLiveTranscript.AutoSize = true;
|
|
lblLiveTranscript.Font = new Font("Consolas", 11F, FontStyle.Bold, GraphicsUnit.Point, 0);
|
|
lblLiveTranscript.ForeColor = Color.Cyan;
|
|
lblLiveTranscript.Location = new Point(14, 40);
|
|
lblLiveTranscript.Margin = new Padding(4, 0, 4, 0);
|
|
lblLiveTranscript.Name = "lblLiveTranscript";
|
|
lblLiveTranscript.Size = new Size(96, 18);
|
|
lblLiveTranscript.TabIndex = 3;
|
|
lblLiveTranscript.Text = "[Live]: ...";
|
|
//
|
|
// txtManualInput
|
|
//
|
|
txtManualInput.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
txtManualInput.BackColor = Color.FromArgb(60, 60, 60);
|
|
txtManualInput.BorderStyle = BorderStyle.FixedSingle;
|
|
txtManualInput.Enabled = false;
|
|
txtManualInput.Font = new Font("Segoe UI", 10F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
txtManualInput.ForeColor = Color.White;
|
|
txtManualInput.Location = new Point(14, 70);
|
|
txtManualInput.Margin = new Padding(4, 3, 4, 3);
|
|
txtManualInput.Name = "txtManualInput";
|
|
txtManualInput.Size = new Size(659, 25);
|
|
txtManualInput.TabIndex = 2;
|
|
txtManualInput.KeyDown += txtManualInput_KeyDown;
|
|
//
|
|
// btnSend
|
|
//
|
|
btnSend.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
btnSend.BackColor = Color.FromArgb(0, 122, 204);
|
|
btnSend.Enabled = false;
|
|
btnSend.FlatAppearance.BorderSize = 0;
|
|
btnSend.FlatStyle = FlatStyle.Flat;
|
|
btnSend.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 0);
|
|
btnSend.ForeColor = Color.White;
|
|
btnSend.Location = new Point(681, 70);
|
|
btnSend.Margin = new Padding(4, 3, 4, 3);
|
|
btnSend.Name = "btnSend";
|
|
btnSend.Size = new Size(99, 25);
|
|
btnSend.TabIndex = 1;
|
|
btnSend.Text = "Send";
|
|
btnSend.UseVisualStyleBackColor = false;
|
|
btnSend.Click += btnSend_Click;
|
|
//
|
|
// chkVoiceMode
|
|
//
|
|
chkVoiceMode.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
chkVoiceMode.AutoSize = true;
|
|
chkVoiceMode.Checked = true;
|
|
chkVoiceMode.CheckState = CheckState.Checked;
|
|
chkVoiceMode.Font = new Font("Segoe UI", 10F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
chkVoiceMode.ForeColor = Color.White;
|
|
chkVoiceMode.Location = new Point(788, 40);
|
|
chkVoiceMode.Margin = new Padding(4, 3, 4, 3);
|
|
chkVoiceMode.Name = "chkVoiceMode";
|
|
chkVoiceMode.Size = new Size(100, 23);
|
|
chkVoiceMode.TabIndex = 0;
|
|
chkVoiceMode.Text = "Voice Mode";
|
|
chkVoiceMode.UseVisualStyleBackColor = true;
|
|
chkVoiceMode.CheckedChanged += chkVoiceMode_CheckedChanged;
|
|
//
|
|
// MainForm
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(915, 647);
|
|
Controls.Add(rtbLogs);
|
|
Controls.Add(pnlBottom);
|
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
|
Margin = new Padding(4, 3, 4, 3);
|
|
Name = "MainForm";
|
|
Text = "Synapse OS Assistant PoC";
|
|
FormClosing += MainForm_FormClosing;
|
|
Load += MainForm_Load;
|
|
pnlBottom.ResumeLayout(false);
|
|
pnlBottom.PerformLayout();
|
|
ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.RichTextBox rtbLogs;
|
|
private System.Windows.Forms.Panel pnlBottom;
|
|
private System.Windows.Forms.TextBox txtManualInput;
|
|
private System.Windows.Forms.Button btnSend;
|
|
private System.Windows.Forms.CheckBox chkVoiceMode;
|
|
private System.Windows.Forms.Label lblLiveTranscript;
|
|
private System.Windows.Forms.Button reInitSessionBtn;
|
|
private System.Windows.Forms.ComboBox cmbSessions;
|
|
private System.Windows.Forms.Label lblSession;
|
|
private System.Windows.Forms.Button btnRefreshSessions;
|
|
}
|
|
} |